What is difference btw meaning of contains and possess?

Hello. I’m very new at unreal and looking around tutorials and documents thesedays

When i read documents, I found unreal doc uses ‘possess’ and ‘contains’ term frequently.
Generally speaking, contains means a class has (or controls) some other objects by its references as i know.
I’m guessing possess has also similar meaning but i think there is something more.
(Possess is also used at menu in unreal editor, as i saw)

Framework image, bottom of below link has exact example of usage of contains and possess.
https://docs.unrealengine.com/latest/ENG/Programming/UnrealArchitecture/index.html

Possess:

For example the PlayerController and the Pawn/Character. Every Player has it’s own PlayerController. If you want to let a Player controll a Pawn, his PlayerController needs to possess the Pawn. So in other words, the PlayerController makes the Pawn his own. It’s simply the PlayerControllers Pawn, like he is controlling it with Strings, like a puppet. (Man, it’s pretty hard explaining something in english if you aren’t a native speaker xD)

Contain:

That’s the thing you already said, maybe without the “controls”, because this is more a thing of the Possess phrase.
You can say, the Pawn/Character contains information about itself (Health e.g.), or the GameState contains information about the actual Game in a specific moment, like “How many players are connected and what is their score”. So contain means that this is “inside” of them. Variables (also references) or functions and so on.

So the difference is:

“Possess” is about controlling something else that is not a part of the class and “contains” is everything that is a part of the class and maybe references like the HUD that is available over the PlayerController because every Player has it’s own HUD.

I hope this makes it clearer xD if not just tell me and i will search for some examples.

Thanks! It helps a lot. :slight_smile: and also thank you for understanding my language.