This version of Unity is unsupported.

RigidbodyConstraints2D.FreezeAll

Description

Freeze rotation and motion along all axes.