Home > Enterprise >  How do I add a public script to Prefab?
How do I add a public script to Prefab?

Time:05-27

I have an empty game object in the hierarchy as shown below:
Hierarchy.

It has a script and I want to do reach with my prefab which is
prefab

How can I do it?

CodePudding user response:

Drag your prefab and make it child to your Empty Game Object (who have script on him, will affect him too). I always do this for onClick, for scenes and works great. Tell me if made it.

  • Related