I've been trying for days without success. How do I change the text of a Unity 4.6 button using C# script? Any suggestions are appreciated.
相关问题
- React Native Inline style for multiple Text in sin
- Unity - Get Random Color at Spawning
- Unity3D WebGL Headless not rendering
- How to change the first two uppercase characters o
- change button color on-click and remains same for
相关文章
- 放在input的text下文本一直出现一个/(即使还没输入任何值)是什么情况
- Programmatically setting and saving the icon assoc
- Omnisharp in VS Code produces a lot of warnings ab
- Call non-static methods on custom Unity Android Pl
- How can a game created in Unity can run on an Andr
- Rendering plain text through PHP
- Python thinks a 3000-line text file is one line lo
- How to add Persistent Listener to Button.onClick e
Create a script and add it to your UIButton you should add the reference Unity.UI
then declare a variable
on the function Start put this
then when you want to change your text add this
if you need to apply more modifications visit http://docs.unity3d.com/ScriptReference/UI.Text.html
[VERSION WITH TAGS]
add this reference
then when you want to change your text add this