While looking through the header of USceneComponent
, I noticed SpriteComponent
doesn’t have a UPROPERTY associated with it. Is this a mistake? From what I understand, doesn’t this mean that SpriteComponent
won’t be tracked and is subject to be garbage collected at any given time? I’m wondering if I’m missing something.
Components are tracked by the owning Actor they don’t really need UPROPERTY.
Ah yea you’re right. From the owning actor, I was able to go through RootComponent
and traverse the AttachChildren
arrays to find the sprite component, and both of those variable are tracked with UPROPERTY. Makes sense that the variable I asked about wouldn’t need it. Thanks!