AnimationChannel.Add Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Adds a new keyframe to the collection, automatically sorting the contents according to keyframe times.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public int Add(
	AnimationKeyframe item
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

item
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.AnimationKeyframe
Keyframe to be added to the channel.

Return Value

Type: System.Int32
Index of the new keyframe.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop