Interface IModelCollection
The collection of models currently displayed on the associated IStage.
Namespace: Unity.Cloud.DataStreaming.Runtime
Assembly: solution.dll
Syntax
public interface IModelCollection
Properties
ModelAdded
Event-like object to know when a model is added onto the IStage.
Declaration
IObservableEvent<IModelStream> ModelAdded { get; }
Property Value
Type | Description |
---|---|
IObservableEvent<IModelStream> |
ModelRemoved
Event-like object to know when a model is removed from the IStage. This event is only triggered when everything from this model is removed from the scene, which means that most of the time, it won't trigger synchronously with a call to Remove(IModelStream).
Declaration
IObservableEvent<IModelStream> ModelRemoved { get; }
Property Value
Type | Description |
---|---|
IObservableEvent<IModelStream> |
Methods
Add(Action<ModelConfigurator>)
Adds a model onto the IStage.
Declaration
IModelStream Add(Action<ModelConfigurator> configure)
Parameters
Type | Name | Description |
---|---|---|
Action<ModelConfigurator> | configure | A lambda to configure how the model is loaded. |
Returns
Type | Description |
---|---|
IModelStream | An IModelStream to to access model-specific features. |
Remove(IModelStream)
Removes the model from the IStage.
Declaration
void Remove(IModelStream model)
Parameters
Type | Name | Description |
---|---|---|
IModelStream | model | The model to remove. |