Help with setting rotation to 0,0,0

I am using the code:

if (Input.GetKeyDown (KeyCode.Space)) {
			transform.Rotate (0,0,0);
		}

to try and set the object rotation back to 0,0,0 i have worked out why this isn’t working because when ever you hit space it is setting + 0 rotation to the object.

Any help on making it set the rotation to 0 instead of adding 0 to it.

Thanks

Try this:

transform.rotation = Quaternion.identity;