Question by 
               Aederon · Jan 13, 2016 at 05:11 PM · 
                scripting problemgameobjectinspectorcomponentsplaymode  
              
 
              Scrpits component disappears when I enter playmode
When my program is run, a number a trees are instantiated. Each of these trees has a script attached to it that dictates its various properties (how high it should be etc.).
HOWEVER, for some reason this script is greyed-out in the inspector. Screenshot:
More worryingly, when I enter play mode, this component vanishes. :( Does anyone know what is causing this / how can I fix it?
Thanks for any help you can provide
 
                 
                untitled-1.png 
                (13.8 kB) 
               
 
              
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
Put a GameObject in the script's inspector when the script belongs to a prefab 1 Answer
Reference to Array Attribute from Inspector 0 Answers
How to enable script on another gameobject in C#? 1 Answer
Destroyed instance of Prefab, can't spawn it back. 1 Answer
Changing a Prefab's Text component seems to be broken. 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                