• 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

LockPosition

Class in Zigurous.Animation

Declaration

public sealed class LockPosition : MonoBehaviour

Description

Locks the position of the transform to a specified value.

Properties

spaceThe coordinate space the transform is updated in.
constraintsThe position axes to lock.
useTransformPositionSets the locked position to the transform's position at startup.
lockedPositionThe locked position of the transform.