The question above, I change the local rotation by a Quaternion and both transform.rotation && transform.localRotation are the same. This include the euler angles. If i cahnge one the other follows, why is that, I though localRotation was local and rotation was global. Can someone help me out.
Is your GameObject parented to anything? Transform.localRotation is;
The rotation of the transform relative to the parent transform’s rotation.
And Transform.rotation is basically the same, except the “parent” is the world root. So if your GameObject isn’t parented to anything localRotation will be the same as world Rotation.
If it is parented, and that object has a rotation of Quaternion.identity you will have the same effect.
Hope this has helped.
Thanks