Actor-GetComponent-T-(string).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.Actor

Actor.GetComponent<T>(string) Method

Returns the component of the actor if matches the specified type, optionally with the specified name

public T GetComponent<T>(string name=null)
    where T : UnrealEngine.Framework.ActorComponent;

Type parameters

T
The type of the component

Constraints ActorComponent

Parameters

name System.String
The name of the component

Returns

T
A component or null on failure

Contents

  1. 0.1UnrealEngine.Framework.Actor
  2. 1(string) Method">Actor.GetComponent&#x3C;T>(string) Method