© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
11 replies
cccc

Update Text Color OnTriggerEntry

Within ZoneUpdater, I have a public colour variable that can be changed within the editor
Based on this, under my other script within void Update(), I have:
        zoneDisplayUI.color = gameObject.GetComponent<ZoneUpdater>().textColour;
        zoneDisplayUI.text = "ZONE: " + currentZone;
        zoneDisplayUI.color = gameObject.GetComponent<ZoneUpdater>().textColour;
        zoneDisplayUI.text = "ZONE: " + currentZone;

Why doesnt this work, currently it completely removes my text
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Text box color changing
C#CC# / help
3y ago
❔ Changing The Color Of Disabled Text
C#CC# / help
3y ago
basic rpg help, update text box
C#CC# / help
3y ago
DrawString doesn't update text / Windows Forms
C#CC# / help
2y ago