Quantcast
Channel: Answers by "octaviomejiadiaz"
Viewing all articles
Browse latest Browse all 8

Answer by octaviomejiadiaz

$
0
0
sorry to ask again, i've lost all my work cause my computer had a problem.. but i'm coding again this thing. and all works fine. but i can't make that different GUIButtons Follow different cubes(GameObjects). i have cube1,cube2,cube3,cube4, where do i can put the name of this GameObjects? or what do i have to do? void OnGUI() { Vector3 V = Camera.main.WorldToScreenPoint(cube1.transform.position); if (GUI.Button(new Rect(V.x,Screen.height - V.y,300,200),"Button Text")) }

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>