Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

dotween do rotate on one axis

//The current workaround is to use DORotateQuaternion instead (will add it to the docs until I fix this):

transform.eulerAngles = new Vector3(95, 0, 0);
transform.DORotateQuaternion(Quaternion.Euler(new Vector3(100, 0, 0)), 1);
 
PREVIOUS NEXT
Tagged: #dotween #rotate #axis
ADD COMMENT
Topic
Name
1+8 =