Set default text color when extending Text component
Unity's Text component has 323232FF set as color by default. When i extend Text component, that color is not longer set (it's white).
 ¿How can i set the default text color when extending the component?
 ¿How can i set the default text color when extending the component?
 using UnityEngine;
 using UnityEngine.UI;
 
 [AddComponentMenu("UI/CodeText", 10)]
 public class CodeText : Text
 {
     void Awake() {
         Game.Instance.trackMe();
     }
 }
 
Unity's Text component source code:
I'm not overwriting the "GetGenerationSettings" which looks to be setting the color :S
 
                 
                2.jpg 
                (33.2 kB) 
               
 
              
               Comment
              
 
               
              Answer by moment_um · Nov 08, 2018 at 09:14 PM
To do this there is a function called Reset.  Reset(){ color = Color.black; }  
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                