Changing the "Use message" at runtime.
Posted: Wed Mar 12, 2025 8:37 pm
Hey there,
I'm trying to have my player's ProximitySelector's use message change based on the current input scheme being used. I'm using TextMeshPro's rich text system to incorporate sprites into the use message to show keyboard/controller buttons.
I have no issues setting the use message through the player's ProximitySelector component at Start(), but changing the "defaultUseMessage" after this seems to do nothing. I can only guess this is due to an external component taking the reins after receiving this value at the start.
Just wondering if there's a clean way I can change the use message through script at runtime.
Thanks so much for your time!
I'm trying to have my player's ProximitySelector's use message change based on the current input scheme being used. I'm using TextMeshPro's rich text system to incorporate sprites into the use message to show keyboard/controller buttons.
I have no issues setting the use message through the player's ProximitySelector component at Start(), but changing the "defaultUseMessage" after this seems to do nothing. I can only guess this is due to an external component taking the reins after receiving this value at the start.
Just wondering if there's a clean way I can change the use message through script at runtime.
Thanks so much for your time!