add_motion_warping_component
Attach a motion warping component to an actor in the editor world, returning the existing instance if already present.
Instructions
Attach a UMotionWarpingComponent to an actor in the editor world. Idempotent: if the actor already has one, returns the existing instance with already_existed:true instead of creating a duplicate. The component is NewObject(Actor, FName("MotionWarping")) followed by RegisterComponent() so it shows up in GetComponents() immediately. The owning world's level is marked dirty so the editor persists the change on save; no explicit SavePackage call (avoids the noise of saving a transient actor out of an editor world).
Returns: { actor_path: string, component_path: string, already_existed: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_path | Yes | Full editor path (e.g. "/Game/Maps/Test.Test:PersistentLevel.ActorName") or short name of the actor. |