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?
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