Skip to content

[Feature Request] Support for Transform/RectTransform as Start/End values in LitMotion Animation Component #282

Description

@Jordan-Untereiner

Description
Currently, the LitMotion Animation component (Motion Player) only allows entering static Vector3 values for Start and End properties. While this works for fixed animations, it is restrictive when trying to animate between dynamic scene objects.
Image

Use Case
In many UI and gameplay scenarios, we want an object (like a UI coin or a projectile) to move from its current position to another object's position. Manually copying Vector3 coordinates is workflow-heavy and doesn't account for objects that might move in the scene before the animation starts.
It is also essential for ensuring good responsiveness

Proposed Solution
Add a "Value Type" toggle or dedicated fields in the LitMotion Animation component inspector to allow:

  1. Manual: Existing Vector3 input.
  2. Transform/Reference: A slot to drag a Transform (for 3D) or RectTransform (for UI).

When a Transform is referenced, the component should internally evaluate transform.position or rectTransform.anchoredPosition at the start of the motion.

Examples:

  • UI: Move an icon from its spawn point to a TargetContainer RectTransform.
  • 3D: Move a camera from its current position to a ViewPoint empty GameObject.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions