How do I change the Target in the MousOrbit Script?
It tried this
aTarget = GameObject.Find("MyObject").Transform;
target = aTarget;
But it doesn’t work.
Any ideas?
How do I change the Target in the MousOrbit Script?
It tried this
aTarget = GameObject.Find("MyObject").Transform;
target = aTarget;
But it doesn’t work.
Any ideas?
var target : Transform;
function Awake(){
if(GameObject.Find("MyObject"))target = GameObject.Find("MyObject").transform;
}
Then drag the target that you want to that.
If you are asking by