Help! Unity: Find GameObjects

Kaorin333

Solid & Active Platinian
Mayomai, im now searching and for everything in the game but i cannot find more than i want. So new approach.
Is there a way to find all GameObjects? What i want is, to find for example in the world Weapons, Items.
As i know its possible to get over the GameObject the value like "mapPos".

Btw while im asking about GameObjects, is there a problem if i for example access a variable lets say

C++:
Function(instance, GameObject_o gameObj){

    int a = gameObj.fields.items->fields.gameObject->fields.mapPos.x;
   
}

is this even possible or would the game crash if you access this, double pointer?

Thank you.
 
Last edited:
Back
Top Bottom