I am setting up a system where I click an object to enable another object, then I can click another object to disable both those objects…etc.
My problem is that the objects are prefabs. If I destroy it, I cannot access it to instantiate it again, and I cannot set prefab.active to simply disable it instead of destroying it.
The code is spread across multiple classes so I can’t just paste it, but code should not be needed. I simply need to know how to add a reference to the object I want to enable and disable (it is a prefab I drag and drop on the script as a game object) without destroying it to disable it.
Hope that makes sense, I can try explaining another way if needed.