- Home /
Please how to change the color of object and the toolTip based on Text file?
Hi all,
I have many cubes in the scene and I have a text file included the name of cube and the dimensions (width, Length and Height) and color as the following format:
 cube001,7,5,1,blue
 cube002,8,4,2,red
 cube003,6,7,3,nochangecolor
 ...
My question please is when I started the game should be all the cubes take the color which mentioned in the text file then if I pressed the "cube001", should be the UI Text box appear above the cube including the following:
 Width: 7 cm.
 Length: 5 cm.
 Height: 1 cm. 
In case the color is nochangecolor in text file that is mean the color of the cube should not be change but will appear the UI Text (Width, Length & Height) only above the cube on pressed it.
I appreciate any help :)
Sample:

Your answer
 
 
             Follow this Question
Related Questions
How to dynamically access scripts from other gameobjects? 1 Answer
Unity 2d Dynamic UI text not rendering on Canvas 0 Answers
Dynamic text problem 1 Answer
Changing text color at runtime always white... 3 Answers
Text - Negative Color from Background 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                