- Home /
Null in one scene and active in another
Okay so, I was creating a game in which i added an inventory item, i used C# events, in the level 1, the item added event was not null but in the 2nd event, it magically became null, i have copied the exact format of the inventory of previous level by using prefab. gime a solution to this pls
Comment
Maybe you are missing references? A prefab can not contain references to gameObjects in the scene. You have to set it up manually in inspector in code. But can't really say if that is the issue, please post code and inspector if you want help.