Class XRRenderableModels
Renderable models class.
Implements
Inherited Members
Namespace: Evergine.Framework.XR.RenderableModels
Assembly: Evergine.Framework.dll
Syntax
public abstract class XRRenderableModels : DisposableObject, IDisposable
Properties
AvailableModels
Gets the available models to download.
Declaration
public abstract IEnumerable<string> AvailableModels { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Methods
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
FireOnNewModelAvailable(string)
Fire the OnNewModelAvailable event.
Declaration
protected void FireOnNewModelAvailable(string modelName)
Parameters
Type | Name | Description |
---|---|---|
string | modelName | The model name. |
TryGetRenderableModelAsync(string)
Gets a renderable model for this tracked device.
Declaration
public abstract Task<Model> TryGetRenderableModelAsync(string modelName)
Parameters
Type | Name | Description |
---|---|---|
string | modelName | The model name. |
Returns
Type | Description |
---|---|
Task<Model> | An awaitable task that returns the device model. |
Events
OnNewModelAvailable
Gets an event fired when a new model is available
Declaration
public event EventHandler<string> OnNewModelAvailable
Event Type
Type | Description |
---|---|
EventHandler<string> |