How do the inspector angles relate to script?

Are the inspector angles the eulerAngles of a transform? How do you modify the angles shown in the inspector at runtime?

1 Answer

1

Yes, the inspector angles are eulerAngles.
Changing them is done by updating the eulerAngles of the transform:

transform.eulerAngles = Vector3(x, y, z);