MeshAnimation Duration Property Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public float Duration { get; }

Property Value

Type: Single
Remarks

Tests: DeltaEngine.Rendering3D.Tests.MeshAnimationTests
Examples

1 unit tests call DeltaEngine.Rendering3D.MeshAnimation.Duration
[Test, CloseAfterFirstFrame]
public void CreateMeshAnimationByCreationData()
{
    MeshAnimation animation = CreateAnimationWith75Frames(FramesPerSecond);
    Assert.AreEqual(NumberOfAnimationFrames, animation.NumberOfFrames);
    Assert.AreEqual(FramesPerSecond, animation.FramesPerSecond);
    Assert.AreEqual(NumberOfAnimationFrames, animation.Frames.Length);
    Assert.AreEqual(3, animation.Duration);
}
See Also