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
- 
      objectAnimationClip
Fields
Channels
Gets the channels of this clip.
public Dictionary<string, AnimationClip.Channel> ChannelsField Value
- Dictionary<string, AnimationClip.Channel>
- The channels of this clip. 
Curves
public List<AnimationCurve> CurvesField Value
OptimizedAnimationDatas
public AnimationData[] OptimizedAnimationDatasField 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 ShouldRescanChannelsField 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
- propertyNamestring
- Name of the property. 
- curveAnimationCurve
- The curve. 
- isUserCustomPropertybool
GetCurve(string)
public AnimationCurve GetCurve(string propertyName)Parameters
- propertyNamestring
Returns
Optimize()
Optimizes data from multiple curves to a single linear data stream.
public void Optimize()