Quantcast
Channel: Questions in topic: "tagging"
Viewing all articles
Browse latest Browse all 120

How to get around hard-coded string in Unity?

$
0
0
Most of the strings in Unity are hard-coded. For example, Button "Fire1" I don't like that we hard code the string "Fire1" inside the script directly. One day, I might change the Project Settings of that Button and I have to go and fix all of the hard coded strings. This includes Animation Triggers, Game Object Name, Tags, etc. What is your solution about this problem?

Viewing all articles
Browse latest Browse all 120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>