Ready-made StateTree tools for Unreal Engine 5
Plugin: StateTreeToolsCore Category: Components Available since: StateTree Tools 2.0
Returns the first component on an actor that matches the specified component class. This mirrors Unreal’s Blueprint Get Component By Class node and is useful when you want to retrieve a component reference without hard-coding a component name.
UE 5.7 and earlier known issue: Unreal has a component-binding UI bug that can cause the details panel to continuously refresh when you bind the output of this property function directly into another node’s component input. If that happens, create a StateTree parameter of the component type, bind Get Component By Class into that parameter, and then bind the parameter into the target node instead.
Bind this to the actor whose components you want to search.
Set this to the component class to search for. The first component on the actor that matches this class is returned.
The first component found that matches Component Class. If the actor is invalid or no matching component exists, the output is None.
Property functions are not available in UE 5.4. This node requires UE 5.5 or later.