FComponentReference works only for UPrimitiveComponent

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?

Hi ,

Thanks for pointing this out. We want to look into this method a little bit more closely, but we probably will not be able to do so until after GDC.

Hi ,

Sorry for the delay in getting back to you. I have entered a report about the cast to UPrimitiveComponent to have that investigated further (UE-12243), since it does not seem to be the intended functionality.