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
BaseDataProviderServiceInspector
Assembly: cs.temp.dll.dll
public abstract class BaseDataProviderServiceInspector : BaseMixedRealityToolkitConfigurationProfileInspector
Methods
Adds a new data provider profile entry (i.e IMixedRealityServiceConfiguration) to array list of target object
Utilizes GetDataProviderConfigurationList() to get SerializedProperty object that represents array to insert against
Declaration
protected virtual void AddDataProvider()
Declaration
protected virtual void ApplyProviderConfiguration(Type dataProviderType, BaseDataProviderServiceInspector.ServiceConfigurationProperties providerProperties)
Parameters
Declaration
protected abstract IMixedRealityServiceConfiguration GetDataProviderConfiguration(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Returns
Declaration
protected abstract SerializedProperty GetDataProviderConfigurationList()
Returns
Type |
Description |
SerializedProperty |
|
Declaration
protected abstract BaseDataProviderServiceInspector.ServiceConfigurationProperties GetDataProviderConfigurationProperties(SerializedProperty providerEntry)
Parameters
Returns
Declaration
protected override void OnEnable()
Overrides
Removed given index item from IMixedRealityServiceConfiguration array list.
Utilizes GetDataProviderConfigurationList() to get SerializedProperty object that represents array to delete against.
Declaration
protected virtual void RemoveDataProvider(int index)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
RenderDataProviderEntry(Int32, GUIContent, Type)
Renders properties of IMixedRealityServiceConfiguration instance at provided index in inspector.
Also renders inspector view of data provider's profile object and it's contents if applicable and foldout is expanded.
Declaration
protected bool RenderDataProviderEntry(int index, GUIContent removeContent, Type dataProviderProfileType = null)
Parameters
Type |
Name |
Description |
Int32 |
index |
|
GUIContent |
removeContent |
|
Type |
dataProviderProfileType |
|
Returns
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