- Home /
store gameobject then manipulate with ui
Hello, i cant seem to get this to work as i need, i would like to select a gameobject from many, then change its rotation, colour etc through UI in the game.
Answer by WbrJr · Feb 23, 2018 at 01:49 PM
you can make a script for the UI, i which you can mak a public Gameobject, which variables like transform, material you can access.
Next time you can go on youtube and search by your self.. :
https://www.youtube.com/watch?v=dkJtPqDJ-Cg
But good luck and have fun WbrJR
Hello, thanks for the reply. Its not the Ui that i have issues with. its selecting an object from many in the game, keeping that selected object current whilst manipulating it with ui. Like a field of tanks, selecting one then altering its rotation with ui button, then selecting another tank then rotating it etc.
public static GameObject activeGameObject;
Hey there,
I am pretty shure its possible to select a gamobject with a reycast or something. This object can be stored and edited untill you select another gameobject.
Your answer
Follow this Question
Related Questions
How i set image from Raycast hit target object? 2 Answers
Scroll view not scrolling when colliders are in the way 0 Answers
Multiple Cars not working 1 Answer
gameObject.SetActive (true); Not working 10 Answers