Class BaseDataProviderServiceInspector
Abstract class providing base functionality for data provider management in inspector. Useful for core systems that follow dataprovider access model. Designed to target ScriptableObject profile classes that configure services who support data providers. These profile ScriptableObject classes should contain an array of IMixedRealityServiceConfigurations that configure a list of data providers for this service configuration
Inheritance
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Editor
Assembly: cs.temp.dll.dll
Syntax
public abstract class BaseDataProviderServiceInspector : BaseMixedRealityToolkitConfigurationProfileInspector
Methods
AddDataProvider()
Adds a new data provider profile entry (i.e IMixed
Declaration
protected virtual void AddDataProvider()
ApplyProviderConfiguration(Type, BaseDataProviderServiceInspector.ServiceConfigurationProperties)
Applies the given concrete dataprovider type properties to the provided IMixed
Declaration
protected virtual void ApplyProviderConfiguration(Type dataProviderType, BaseDataProviderServiceInspector.ServiceConfigurationProperties providerProperties)
Parameters
Type | Name | Description |
---|---|---|
Type | dataProviderType | |
Base |
providerProperties |
GetDataProviderConfiguration(Int32)
Returns direct IMixed
Declaration
protected abstract IMixedRealityServiceConfiguration GetDataProviderConfiguration(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Returns
Type | Description |
---|---|
IMixed |
GetDataProviderConfigurationList()
Returns SerializedProperty object that wraps references to array of IMixed
Declaration
protected abstract SerializedProperty GetDataProviderConfigurationList()
Returns
Type | Description |
---|---|
Serialized |
GetDataProviderConfigurationProperties(SerializedProperty)
Builds Base
Declaration
protected abstract BaseDataProviderServiceInspector.ServiceConfigurationProperties GetDataProviderConfigurationProperties(SerializedProperty providerEntry)
Parameters
Type | Name | Description |
---|---|---|
Serialized |
providerEntry | SerializedProperty reference pointing to IMixed |
Returns
Type | Description |
---|---|
Base |
OnEnable()
Declaration
protected override void OnEnable()
Overrides
RemoveDataProvider(Int32)
Removed given index item from IMixed
Declaration
protected virtual void RemoveDataProvider(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
RenderDataProviderEntry(Int32, GUIContent, Type)
Renders properties of IMixed
Declaration
protected bool RenderDataProviderEntry(int index, GUIContent removeContent, Type dataProviderProfileType = null)
Parameters
Returns
Type | Description |
---|---|
Boolean |
RenderDataProviderList(GUIContent, GUIContent, String, Type)
Render list of data provider configuration profiles in inspector. Use provided add and remove content labels for the insert/remove buttons Returns true if any property has changed in this render pass, false otherwise
Declaration
protected bool RenderDataProviderList(GUIContent addContentLabel, GUIContent removeContentLabel, string errorMsg, Type dataProviderProfileType = null)
Parameters
Type | Name | Description |
---|---|---|
GUIContent | addContentLabel | |
GUIContent | removeContentLabel | |
String | errorMsg | |
Type | dataProviderProfileType |
Returns
Type | Description |
---|---|
Boolean |