Answer the question
In order to leave comments, you need to log in
How to add an object from the hierarchy to the prefab script?
I have a prefab and it has a code and in the code there is a GameObject. How to add an object from the hierarchy to the GameObject in the script (which is located on the prefab). Unity just blocks and does not let you cast.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question