Hi,
I have a problem, I made an inventory for a game that I am making, so the principe is that i pick up a GameObject in the scene, a script destroys it, and assign a prefab of the gameobject with Resources.Load to another script that is attached to the inventory case where the object is going to be stored. So the inventory case has got a public Object variable where the object should be stored. My problem is that when I try to access this Object variable from another script with GameObject.Find, it returns null, but when i try to access it through the same script where the object is stored, with GameObject.Find too, it works and returns the object. How is that possible?
Sorry for my bad english and thank you for your answers.
Probably would help to show some code or anything else, I understand what you’re saying, but really would help to narrow down a solution.
Well thank you for your answer but after a long time of research, I found my mistake, it was just a variable name mistake in my script ^^