setActive a UIPanel by clicking a prefab button problem.
i have difficulty in making a prefab button to make one panel dissapear and another panel reappear. both panel are already in the scene one is active while the other is not. the prefab button will act as a trigger when will the panel dissapear or reappear. also i the button will show another prefab that is in the resources folders. but the problem is, it just does not work and i got this error = NullReferenceException: Object reference not set to an instance of an object. why i cant reference it? is there a solution or way around it.
Your answer
![](https://koobas.hobune.stream/wayback/20220612221249im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
unity 2019 I can't reference the child of a prefab in the inspector 0 Answers
Call function for instantated prefab. "Object reference not set" 1 Answer
Reference all instances of a prefab? 1 Answer
Cross scene referenced prefabs 0 Answers
ScriptableObject Instances Referencing One Set of Prefabs - Changing One SO Changes The same prefab 1 Answer