Tuesday, September 15, 2015

how to display 3d text dynamically at unity

iklan
using UnityEngine;
using System.Collections;

public class PlayerNameScript : MonoBehaviour {



    string playerName = "SatyaDev";
    // Use this for initialization
    void Start () {

        photonView = this.GetComponent<PhotonView>();
    }
    
    // Update is called once per frame
    void Update () {
        
        GetComponent<TextMesh> ().text = playerName;

    }
    
}




how to display 3d text dynamically at unity
4/ 5
Oleh