Class MeshMorphAnimationChannel
Describes morph-based keyframe animations for a single mesh or a group of meshes.
Implements
Inherited Members
Namespace: SharpAssimp
Assembly: SharpAssimp.dll
Syntax
public sealed class MeshMorphAnimationChannel : IMarshalable<MeshMorphAnimationChannel, AiMeshMorphAnim>
Constructors
| Edit this page View SourceMeshMorphAnimationChannel()
Constructs a new instance of the MeshMorphAnimationChannel class.
Declaration
public MeshMorphAnimationChannel()
Properties
| Edit this page View SourceHasMeshMorphKeys
Gets if this animation channel has mesh keys - this should always be true.
Declaration
public bool HasMeshMorphKeys { get; }
Property Value
Type | Description |
---|---|
bool |
MeshMorphKeyCount
Gets the number of mesh morph keys in this animation channel. There will always be at least one key.
Declaration
public int MeshMorphKeyCount { get; }
Property Value
Type | Description |
---|---|
int |
MeshMorphKeys
Gets the mesh morph keyframes of the animation. This should not be null.
Declaration
public List<MeshMorphKey> MeshMorphKeys { get; }
Property Value
Type | Description |
---|---|
List<MeshMorphKey> |
Name
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 Name { 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. |