Hello, I have a script with a bool on a prefab gameobject. When one of these objects collides with an area, I have the bool turning to false. But when another gameobject(prefab) instantiates, the bool remains false for that object as well. How can I get the bool to act on only one object at a time?
It sounds like you’re instantiating an object from a scene rather than the Project folder. Make sure you make an actual prefab (drag your object into the Project tab) and then spawn that newly created prefab to spawn.
How are you spawning the object? how do you know what to spawn?
You should have a public GameObject prefabToSpawn variable and you can fill it in the inspector with the prefab from the Project folder.