Move With Object
The Move With Object ability will move the character with the specified target. The Move With Object ability uses the SetMovingPlatform method within the Ultimate Character Locomotion component to have the character move with the object.
Setup
- Select the + button in the ability list under the “Abilities” foldout of the Ultimate Character Locomotion component.
- Add the Move With Object ability. The ability will be able to start no matter what position it is in within the ability list.
- The Move With Object ability will start when it has a Target field, and it will stop when the Target field is set to null.
- To do this in code, you need to first get a reference to the Move With Object ability – for this, you can use UltimateCharacterLocomotion.GetAbility (as described under the “API” section on this page), then set the ability’s Target to the transform of the object that the character should move with.
Inspected Fields
Target
The object that the character should move with.