OnClick() event script from a prefab
So the problem I am having right now is. I am trying to Instantiate a prefab which has 2 scripts attached to it. One of the scripts contains the functions I need to run after clicking a button. But when Intantiating the prefab the OnClick() event won't see my script anymore. I could also Instantiate the button itself as prefab but I want a better way of doing it?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612200351im_/https://answers.unity.com/themes/thub/images/avi.jpg)