Object rotation to unit vector

How can I convert the rotation of an object to a unit vector?

Is there a Unity function to do this? If not, what would be the math to do this?

Thanks for any help.

Looks like I found the answer. It appears transform.forward provides what I need!