Documentation

Your Guide to Using SLATE

Creating Custom ActionClips

Creating custom ActionClips if you so require is very easy. Following are a few steps to consider.

Template

Here is the basic template for creating any type of ActorActionClip. The same applies to DirectorActionClip.

Some of the important inherited members include:

Animatable Parameters

Any field or property of the animation-supported types can be turned into an [AnimatableParameter] with a single attribute. Simply add the [AnimatableParameter] attribute on top of your field/property and it will be animatable that easy! As such you will get a mini DopeSheet on top of the clip, as well as animation curves in its inspector for those parameters. Here is an example of a clip that will log an animated float parameter “number”:

The supported animatable types currently are: bool, int, float, Vector2, Vector3, Vector4, Quaternion, Color, Rect, and Bounds.

The [ShowTrajectory] Attribute

You can add [ShowTrajectory] attribute over any Vector3 [AnimatableParemeter] to have an editable motion path show in the scene view for that parameter.

The [PositionHandle] Attribute

You can add [PositionHandle] attribute over any Vector3 [AnimatableParameter] to be able to adjust the value of that parameter in the scene view through a position gizmo handle. This attribute can optionally be provided the name of a Vectror3 rotation property/field so that the position handle is rotated accordingly.

The [RotationHandle] Attribute

You can add [RotationHandle] attribute over any Vector3 [AnimatableParameter] to be able to adjust the value of that parameter in the scene view through a rotation gizmo handle. This attribute requires to be provided the name of a position field/property so that the rotation handle is shown at that position. For Example.

Yes No Suggest edit
Suggest Edit

© Paradox Notion 2016-2024. All rights reserved.