#Like this?

1 messages · Page 1 of 1 (latest)

pearl verge
#

I would set it to active after the other lines, don't think it changes anything tho.

knotty kraken
#

Seems towork Kinda Well

pearl verge
#

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

knotty kraken
pearl verge
#

Ah I see

knotty kraken
#

its on the child of the gameobject

pearl verge
#

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

knotty kraken
#

I dont have an update function

pearl verge
#

Yeah just saying

#

It's fine in this case

knotty kraken
#

Got it

pearl verge
#

👍

quick forum
#

The text assignment can also be simplified in your case

.text = $"${(amount >= 0 ? "+" : "")}{amount}";
pearl verge
#

The $ before the "" enables you to pass values as string by putting them inside {brackets}

quick forum
pearl verge
#

Yeah I use this aswell

#

Such a game changer after I learned this exists