Actor-GetComponentByTag-T-(string).md

April 18, 2021 ยท View on GitHub

UnrealEngine.Framework.Actor

Actor.GetComponentByTag<T>(string) Method

Returns the component of the actor if matches the specified type and tag

public T GetComponentByTag<T>(string tag)
    where T : UnrealEngine.Framework.ActorComponent;

Type parameters

T
The type of the component

Constraints ActorComponent

Parameters

tag System.String
The tag of the component

Returns

T
A component or null on failure

Contents

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