- Home /
 
               Question by 
               Servail · Sep 18, 2019 at 02:21 PM · 
                componentmonobehaviourcustom-inspectorcustom-editorheader  
              
 
              How to change Component's (MonoBehaviour Script) header (name) shown in Inspector from Custom Editor?
I need to change my Component header in similar to how Mesh Renderer changes its header depended on selected mesh. Is there any way?
I know [AddComponentMenu("MyComponentName")] changes it forever, but I need to change it dynamically! And for OnHeaderGUI() workarounds it must be constantly called with DrawHeader() from somewhere (for example if called from OnInspectorGUI() it won't work if Component is folded (it's like the opposite of what I want)).
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
               
 
			 
                