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
Constraints ActorComponent
Parameters
name System.String
The name of the component
Returns
T
A component or null on failure