This version of Unity is unsupported.

RigidbodyConstraints2D.FreezeRotation

Description

Freeze rotation along the Z-axis.