How to rotate an object and then have that rotation become its 0,0,0

I rotate an object 45 degrees. I would like to keep the said object at 45 degrees rotated and have that be the objects (0,0,0) rotation. Is there a way?

Thanks

Hold the objects rotation in a quaternion. Reset the rotation to Quaternion.Identity (I think). Then apply the stored rotation to a parent object of your ‘reseting’ object.

Should work in theory.