Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity text custom color

//will change the color of the text to red (RGB)
TextGameObject.color = new Color(255, 0, 0);
//will change the color of the text to red with alpha channel (RGBA)
TextGameObject.color = new Color32(255, 0, 0, 0);
 
PREVIOUS NEXT
Tagged: #unity #text #custom #color
ADD COMMENT
Topic
Name
3+5 =