Search Unity

show 3D text on canvas (unity5)

Discussion in 'Scripting' started by maubar, Feb 5, 2016.

  1. maubar

    maubar

    Joined:
    May 27, 2015
    Posts:
    128
    hi
    i need to show some text NOT ON UI screen
    i already have a script on C#
    but i need to learn how to do this on java

    here is my code on C# (but need thiso in java)

    Code (CSharp):
    1. using UnityEngine;
    2. using UnityEngine.UI;
    3. using System.Collections;
    4. public class showtext : MonoBehaviour {
    5. public Text score_Text;
    6. public int highScore = 0;
    7.      void Update(){
    8.          highScore = PlayerPrefs.GetInt("HighScore");
    9.         score_Text.text = highScore.ToString();
    10.      }
    11. }
    in other word how to do this in java please help.
    i will apreciate so much.
     
  2. maubar

    maubar

    Joined:
    May 27, 2015
    Posts:
    128
    any idea please ?