Class AnimationClip
- Namespace
- Stride.Animations
- Assembly
- Stride.Engine.dll
An aggregation of AnimationCurve with their channel names.
[DataContract]
[ContentSerializer(typeof(DataContentSerializer<AnimationClip>))]
[DataSerializerGlobal(typeof(ReferenceSerializer<AnimationClip>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
public sealed class AnimationClip
- Inheritance
-
AnimationClip
Fields
Channels
Gets the channels of this clip.
public Dictionary<string, AnimationClip.Channel> Channels
Field Value
- Dictionary<string, AnimationClip.Channel>
The channels of this clip.
Curves
public List<AnimationCurve> Curves
Field Value
OptimizedAnimationDatas
public AnimationData[] OptimizedAnimationDatas
Field Value
ShouldRescanChannels
Set this flag to true when the channel information of the clip have changed and need to be rescan by engine.
public bool ShouldRescanChannels
Field Value
Properties
Duration
Gets or sets the duration of this clip.
public TimeSpan Duration { get; set; }
Property Value
- TimeSpan
The duration of this clip.
RepeatMode
Gets or sets the repeat mode of the AnimationClip.
public AnimationRepeatMode RepeatMode { get; set; }
Property Value
Methods
AddCurve(string, AnimationCurve, bool)
Adds a named curve.
public void AddCurve(string propertyName, AnimationCurve curve, bool isUserCustomProperty = false)
Parameters
propertyName
stringName of the property.
curve
AnimationCurveThe curve.
isUserCustomProperty
bool
GetCurve(string)
public AnimationCurve GetCurve(string propertyName)
Parameters
propertyName
string
Returns
Optimize()
Optimizes data from multiple curves to a single linear data stream.
public void Optimize()