Hello, I’m having an issue in a new project where when I add an object to an object group, every object group connected to that object will have all the same variables no matter what.
For example, I make an object group “Pipe1” and add the variable “Gurgle” to it.
The object “Fountain” is part of “Pipe1”.
I then make a new object group “Pipe2”, but when I add “Fountain” to it, suddenly this new group has “Gurgle” as one of its variables.
So I delete “Gurgle” from “Pipe2”, but that has also deleted “Gurgle” from “Pipe1”.
I’ve finished an entire game and have never had this issue until just now.
I can’t really share a project to show my point, since it’s an issue in the editor. And yes, I have the “Add every object variable to the group” setting set to OFF.
I remember a similar post about this in the past but I don’t recall the outcome.
I tested it and I had the same outcome. GD respects the “add variables” choice when the object group is first created but if I added objects to an existing group, that groups variable did get added to the newly added object.
You can choose whether you want to add variables when creating an object group but afterwards, it doesn’t give you a choice and seems to add the variables regardless of whether you previously checked or unchecked the option when the group was first created.
Yes, but the object variables for the objects being added to an existing group do have the variables of the existing objects in the group added to them.
In my screenshot, object B1 only had 1 variable but when added to the Mixed group that only contained A1, object B1 was given the variable from A1.
You can choose to not add variables when the group is created but it seems like that once the group is created, it adds variables to new objects that are added to a group.
I honestly support this mechanism but it seems counter to the way it’s designed. You’re given a choice to add the variables when the group is created, so it seems logic that you would still have the option to add objects without modifying their variables. Either the original choice should be used or the checkbox or some other option should remain.
Again, I don’t have an issue. I think that all of the objects in a group should have the same variables but I’m willing to admit that there might be some cases where it’s inefficient to add extra variables to every object. I just feel that there should either be the option or if it’s working as planned, then it needs to be spelled out that way in the wiki or the UI if it isn’t already. It just needs to be clear to prevent confusion.
If common variables and behaviors of the existing objects of the group were not added to the new object, there is a good chance every variable and behavior will disappear from the group which would feel odd in my opinion.