Is it possible to set an object as a variable (not talking about object variables) I know @ vfabien21 asked about this before but I am not willing to make this too complex should I make an extension or is their an easier to do this?
What do you mean by āto set an object as a variableā?
Like in unity public Gameobject enemy
Example:
Unless you are mixing up terms (or Iām misunderstanding), thatās not a Unity variable. Thatās basically just assigning a class to an object.
You probably need to explain more about your use case, but otherwise Object Groups are the equivalent of classes in GDevelop.
No you are not understanding take a look at the mock up I made just ignore the C# code. An Object Group would not work because I want a specific object for every event that can change if and when I want it to so I can avoid making 500 million conditions.
The mockup you made isnāt how it works in Unity either.
For GDevelop, Object names are references, not strings or other data types, and cannot be treated dynamically.
The closest youād be able to do that is make an object group, add a variable to the group (probably a boolean, named something like āmainā) and change it to true whenever you want on the instance you want to be the target, and setting it to false on all other objects in that object group whenever needed.
Then add that boolean=true as a condition on whatever events you do make.
Thank you this is what I need! The unity example was not a one very good because it did not convey what I meant.