- Home /
Question by
Agostino · Nov 16, 2013 at 11:40 AM ·
instantiateprefabcomponentaccessing from any script
Access prefab component without instantiating
I need to access the Collider component of a prefab without instantiating it. Is it possible?
I'm doing this from a script that has a reference to the prefab Object.
Comment
Best Answer
Answer by Agostino · Nov 16, 2013 at 12:16 PM
I found the solution here
http://answers.unity3d.com/questions/266432/editorhow-can-i-get-components-in-non-instantiated.html
Your answer
Follow this Question
Related Questions
The variable othertransform of Prefab has not been assigned 2 Answers
How to make sprites instantiate based on randomly generated integer? 1 Answer
How to check if a component is on an instantiated prefab? 1 Answer
C# setting instantiated prefab variables from another script. 1 Answer
Get child component of a prefab to reference with another prefab 1 Answer