Why isn’t it possible to set the start Transform of a object as a variable?
Take this script for example:
private var yStart = transform.position.y;
function Update () {
print (yStart);
}
For it Unity gives me nothing but trouble:
“System.NullReferenceExeption: Object reference not set up to an instance of an object”!
I guess I could manually set the start position of the object, but Im lazy!