Class MusicAsset
Music asset type. This asset is used to play long music tracks in background.
Implements
System.IDisposable
Inherited Members
Namespace: BonEngineSharp.Assets
Assembly: BonEngineSharp.dll
Syntax
public class MusicAsset : IAsset, IDisposable
Constructors
MusicAsset(IntPtr)
Create the asset.
Declaration
public MusicAsset(IntPtr handle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | handle | Asset handle inside the low-level engine. |
Properties
AssetType
Get asset type.
Declaration
public override AssetType AssetType { get; }
Property Value
| Type | Description |
|---|---|
| AssetType |
Overrides
Length
Get music track length.
Declaration
public float Length { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
Finalize()
Dispose on destructor.
Declaration
protected override void Finalize()
Overrides
Implements
System.IDisposable