GetOwner()

Hello! Thank you for this lecture.

What would be a practical use case for GetOwner()? It seems counterintuitive to store a reference to the actor itself if we’re already adding code to change its state within the component

Maybe I misunderstood your question or you misunderstood GetOwner().

The owner is the actor that “owns” an actor or component. For a component that is the actor the component is attached to.

I’m not quite sure what you’re trying to say here.

My question is more that why would we need to do GetOwner() when we’re already making changes within the component?

To be able to access properties and other components on the actor. Have you continued with the section? It will probably make more sense as you continue.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms