Class XRRenderableModels
Class for renderable models.
Inheritance
XRRenderableModels
Inherited Members
Namespace: Evergine.Framework.XR.RenderableModels
Assembly: Evergine.Framework.dll
Syntax
public abstract class XRRenderableModels : DisposableObject
Properties
AvailableModels
Gets the available models for download.
Declaration
public abstract IEnumerable<string> AvailableModels { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
FireOnNewModelAvailable(string)
Fires 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> | A task that returns the device model. |
Events
OnNewModelAvailable
Gets an event that is fired when a new model is available
Declaration
public event EventHandler<string> OnNewModelAvailable
Event Type
Type | Description |
---|---|
EventHandler<string> |