Reset a 3D object to (rotation 0,0,0) please?

Hi, good morning,
I have a 3D object on screen

and I need pressing a rect button to reset the object (rotation) to initial rotation, 0,0,0 please.
is that posible ?

thanks again !

sure, just do it.

rotate it by - its current rotation

Is setting its rotation to Quaternion.identity any slower?

sorry I did not get that. I am so new on unity.
please could you explain to me more deep please on how to reset the roation to 0,0,0 (3D object) please ?

sorry and thanks !

If the script is attached to the object you want to reset then just use

transform.rotation = Quaternion.identity;

Quaternion.identity essentially is a Quaternion that equates to ‘no rotation’.

1 Like

Thankyou… thankyou… very much.
now is working.

He meant if, for example, your object is rotated by (10,30,-40), to rotate it by (-10, -30, 40).