I have one canvas attached to a child object. I have two texts which are words. I have one Text that is actually a number for tracking a velocity and one slider tracking fuel level.
My problem is whenever I use “AtvVelo1 = FindObjectOfType();” It always grabs one of the text inputs that are words.
The question is how do you tell unity which of the text inputs you want to access? Even if I put the other one first, it still grabs the wrong one and if I turn off the one I don’t want it grabs none of them
Do I need another canvas or is there a way to use a find with tag on TextMeshProUGUI?
AtvVelo1 = FindObjectOfType();
string temp1 = (Velocity).ToString(“0”);
AtvVelo1.SetText(temp1);