5 using System.Collections.Generic;
15 [Tooltip(
"TextMesh to assign the selected text")]
20 if (TextMeshObject == null)
22 TextMeshObject = GetComponent<TextMesh>();
36 if (TextMeshObject == null)
38 TextMeshObject = GetComponent<TextMesh>();
41 TextMeshObject.color = Array[Index];
override void Awake()
set the default TargetObject
override void SetIndex(int index)
apply the selected text
Sets the color of a TextMesh object based on the selected value in the array