Class Animation
An animation consists of keyframe data for a number of nodes. For each node affected by the animation, a separate series of data is given.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public sealed class Animation : IMarshalable<Animation, AiAnimation>
Constructors
| Edit this page View SourceAnimation()
Constructs a new instance of the Animation class.
Declaration
public Animation()
Properties
| Edit this page View SourceDurationInTicks
Gets or sets the duration of the animation in number of ticks.
Declaration
public double DurationInTicks { get; set; }
Property Value
Type | Description |
---|---|
double |
HasMeshAnimations
Gets if the animation has mesh animations.
Declaration
public bool HasMeshAnimations { get; }
Property Value
Type | Description |
---|---|
bool |
HasNodeAnimations
Gets if the animation has node animation channels.
Declaration
public bool HasNodeAnimations { get; }
Property Value
Type | Description |
---|---|
bool |
MeshAnimationChannelCount
Gets the number of mesh animation channels.
Declaration
public int MeshAnimationChannelCount { get; }
Property Value
Type | Description |
---|---|
int |
MeshAnimationChannels
Gets the mesh animation channels.
Declaration
public List<MeshAnimationChannel> MeshAnimationChannels { get; }
Property Value
Type | Description |
---|---|
List<MeshAnimationChannel> |
MeshMorphAnimationChannelCount
Gets the number of mesh morph animation channels.
Declaration
public int MeshMorphAnimationChannelCount { get; }
Property Value
Type | Description |
---|---|
int |
MeshMorphAnimationChannels
Gets the mesh morph animation channels.
Declaration
public List<MeshMorphAnimationChannel> MeshMorphAnimationChannels { get; }
Property Value
Type | Description |
---|---|
List<MeshMorphAnimationChannel> |
Name
Gets or sets the name of the animation. If the modeling package the data was exported from only supports a single animation channel, this name is usually empty.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NodeAnimationChannelCount
Gets the number of node animation channels where each channel affects a single node.
Declaration
public int NodeAnimationChannelCount { get; }
Property Value
Type | Description |
---|---|
int |
NodeAnimationChannels
Gets the node animation channels.
Declaration
public List<NodeAnimationChannel> NodeAnimationChannels { get; }
Property Value
Type | Description |
---|---|
List<NodeAnimationChannel> |
TicksPerSecond
Gets or sets the number of ticks per second. It may be zero if it is not specified in the imported file.
Declaration
public double TicksPerSecond { get; set; }
Property Value
Type | Description |
---|---|
double |
Methods
| Edit this page View SourceFreeNative(nint, bool)
Frees unmanaged memory created by ToNative(nint, out Native).
Declaration
public static void FreeNative(nint nativeValue, bool freeNative)
Parameters
Type | Name | Description |
---|---|---|
nint | nativeValue | Native value to free |
bool | freeNative | True if the unmanaged memory should be freed, false otherwise. |