Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class TTT : MonoBehaviour {
- // Use this for initialization
- void Start () {
- }
- public string text = "test";
- void OnGUI(){
- text = TextField(new Vector2(10,10), new Vector2(100,100), text, new Font(), Color.green);
- }
- public static string TextField(Vector2 topLeft, Vector2 size, string text, Font font, Color color){
- //SetupStyle(instance.textFieldStyle, font, color, TextAnchor.MiddleLeft);
- return GUI.TextField(new Rect(topLeft.x, topLeft.y, size.x, size.y), text/*, instance.textFieldStyle*/);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement