Transform.lockRotationY

Locks rotation on the Y axis

struct Transform
bool lockRotationY;

Meta