- Home /
Showing position by using TextMesh
Hi . This code doesn't work ;/ Why ? Can someone tell me what is bad ?
using UnityEngine;
using System.Collections;
public class Pozycja : MonoBehaviour {
Vector3 pos = transform.position.x;
// Update is called once per frame
void FixedUpdate () {
transform.GetComponent(TextMesh) = "" + pos;
}
}
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How do I check if X position is increased by 5? 1 Answer
Finding the position of an object 1 Answer
Procedural object generation, objects overlap each other 1 Answer