Question by
Dusty_Cube · Nov 29, 2015 at 04:31 AM ·
textmesh
how to set de text in a textmesh using a string
im tring to get a textmesh to show de string i put in a settings menu
public class SetScore : MonoBehaviour {
public TextMesh pname;
public string Pname;
public void start()
{
Pname = PlayerPrefs.GetString ("Playername");
pname = Pname
and the setiting's menu script
public string pname ="edit in settings";
GUI.Label (new Rect(55,100,60,40),"Player name");
pname = GUI.TextField (new Rect (25, 150, 300,40), pname);
PlayerPrefs.SetString ("Playername", pname);
Comment
Your answer
Follow this Question
Related Questions
Updating Textmesh causes game to stutter on mobile (c#) 0 Answers
Loads of errors after upgrading to 2018.3.0f 0 Answers
How to get a neon glow effect on text like in this example? 0 Answers
Set the font of a TextMeshProUGUI component BY CODE 0 Answers
Textmesg Pro not working in MacOSX for language with Special Characters 0 Answers