Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity text 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 #color
ADD COMMENT
Topic
Name
1+6 =