- Home /
Question by
ashkanaral · Mar 13 at 06:43 PM ·
textcoordinatesgraph
Graph of Lines Numbered
How do you add a text to a graph of x,y,z with numbered at each point such as 1,2,3,4,5...
void Start()
{
for(int i = 0; i < 10; i++)
{
Vector3 end = new Vector3(10, 0, 0);
Vector3 oneStart = default;
int checkNum = Vector3.Distance(oneStart, end);
if(checkNum < 10)
{
text.text = checkNum.ToString();
}
}
}
still cannot find out how to make a line graph with numbers on it
for (int i = 0; i < names.Length; i++)
{
transform.position = new Vector3(i, 0, 0);
names[i].text = i.ToString();
Debug.Log(names[i]);
}
Comment
Your answer
Follow this Question
Related Questions
rotate text for a graph? 1 Answer
Implement display of object measures 0 Answers
How to draw text based on text above it? 0 Answers
importing SVG in unity while maintaining text co-ordinations 1 Answer
Andoid enter text without gui 1 Answer