In the declaration of FComponentReference
, it appears to be set up to be able to reference any scene component. However, the implementation of the GetComponent
method attempts to cast to UPrimitiveComponent
, thereby returning null for non-primitive components.
Further, couldn’t this struct potentially be useful for referencing non-scene components also? Is there a reason it does not simply use UActorComponent
?