#Like this?
1 messages · Page 1 of 1 (latest)
I would set it to active after the other lines, don't think it changes anything tho.
Seems towork Kinda Well
Also if the scoreSheet is a GameObject List/Array and the text mesh pro is on that game object, you would not need to GetComponentInChildren, just GetComponent
Ah I see
its on the child of the gameobject
Well I guess you have very few iterations (<100) its fine
If you do stuff in update, you will want to reference it before and then access it, not try to get its component multiple times each frame
I dont have an update function
Got it
👍
The text assignment can also be simplified in your case
.text = $"${(amount >= 0 ? "+" : "")}{amount}";
The $ before the "" enables you to pass values as string by putting them inside {brackets}
Yeah, that's the shorter and more readable, on my opinion, version of string.Format