• Manual
  • Scripting API
  • Changelog
  • License
🏷️ Namespaces
  • Zigurous.Animation
🧱 Classes
  • AnimatedMaterialTiling
  • AnimatedSprite
  • AxisConstraintExtensions
  • BillboardRotation
  • Blink
  • FollowPath
  • InputRotation
  • LockPosition
  • LockRotation
  • LockScale
  • LockTransform
  • LookAtMouse
  • MatchPosition
  • MatchRotation
  • MatchScale
  • MatchTransform
  • Move
  • Orbit
  • Rotate
  • RotateAround
  • Scale
  • SmoothDamp<T>
  • SmoothDampFloat
  • SmoothDampQuaternion
  • SmoothDampVector2
  • SmoothDampVector3
  • SmoothFollow
  • SmoothLookAt
  • TransformConstraintExtensions
  • UpdateBehaviour
  • Vector2AnimationCurve
  • Vector3AnimationCurve
  • Vector4AnimationCurve
🗂️ Structs
  • AnimatorParameter
  • Timing
  • Timing01
  • TimingRange
  • TimingRange01
🎚️ Interfaces
  • IAnimationCurve<T>
📋 Enums
  • AxisConstraint
  • FollowPath.LoopType
  • TransformConstraint
  • UpdateMode

LockRotation

Class in Zigurous.Animation

Declaration

public sealed class LockRotation : MonoBehaviour

Description

Locks the rotation of the transform to a specified value.

Properties

spaceThe coordinate space the transform is updated in.
constraintsThe rotation axes to lock.
useTransformRotationSets the locked rotation to the transform's rotation at startup.
lockedRotationThe locked rotation of the transform.