Class MeshAnimationChannel
Describes vertex-based animations for a single mesh or a group of meshes. Meshes carry the animation data for each frame. The purpose of this object is to define keyframes, linking each mesh attachment to a particular point in a time.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public sealed class MeshAnimationChannel : IMarshalable<MeshAnimationChannel, AiMeshAnim>
Constructors
| Edit this page View SourceMeshAnimationChannel()
Constructs a new instance of the MeshAnimationChannel class.
Declaration
public MeshAnimationChannel()
Properties
| Edit this page View SourceHasMeshKeys
Gets if this animation channel has mesh keys - this should always be true.
Declaration
public bool HasMeshKeys { get; }
Property Value
Type | Description |
---|---|
bool |
MeshKeyCount
Gets the number of meshkeys in this animation channel. There will always be at least one key.
Declaration
public int MeshKeyCount { get; }
Property Value
Type | Description |
---|---|
int |
MeshKeys
Gets the mesh keyframes of the animation. This should not be null.
Declaration
public List<MeshKey> MeshKeys { get; }
Property Value
Type | Description |
---|---|
List<MeshKey> |
MeshName
Gets or sets the name of the mesh to be animated. Empty strings are not allowed, animation meshes need to be named (not necessarily uniquely, the name can basically serve as a wildcard to select a group of meshes with similar animation setup).
Declaration
public string MeshName { get; set; }
Property Value
Type | Description |
---|---|
string |
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. |