BaseDataProviderServiceInspector Class

Definition

Abstract class providing base functionality for data provider management in inspector. Useful for core systems that follow data provider 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

public ref class BaseDataProviderServiceInspector abstract : Microsoft::MixedReality::Toolkit::Editor::BaseMixedRealityToolkitConfigurationProfileInspector
public abstract class BaseDataProviderServiceInspector : Microsoft.MixedReality.Toolkit.Editor.BaseMixedRealityToolkitConfigurationProfileInspector
type BaseDataProviderServiceInspector = class
    inherit BaseMixedRealityToolkitConfigurationProfileInspector
Public MustInherit Class BaseDataProviderServiceInspector
Inherits BaseMixedRealityToolkitConfigurationProfileInspector
Inheritance
Derived

Constructors

BaseDataProviderServiceInspector()

Fields

BackProfileDescriptions (Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)

Properties

RenderAsSubProfile (Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)

Methods

AddDataProvider()

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

ApplyProviderConfiguration(Type, BaseDataProviderServiceInspector+ServiceConfigurationProperties)

Applies the given concrete data provider type properties to the provided IMixedRealityServiceConfiguration instance (as represented by BaseDataProviderServiceInspector.ServiceConfigurationProperties). Requires MixedRealityDataProviderAttribute on concrete type class to pull initial values that will be applied to the BaseDataProviderServiceInspector.ServiceConfigurationProperties container SerializedProperties

Awake() (Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
CheckEditorPlayMode()

If application is playing, then show warning to the user and disable inspector GUI

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
CheckMixedRealityInputActions()

Check if various input settings are set correctly to read the input actions for the active MRTK instance. If any failures, show appropriate error message

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
DrawBacktrackProfileButton(BaseMixedRealityToolkitConfigurationProfileInspector+BackProfileType) (Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
DrawBacktrackProfileButton(String, Object)

Renders a button that will take user back to a specified profile object

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
GetDataProviderConfiguration(Int32)

Returns direct IMixedRealityServiceConfiguration instance at provided index in target object's array of IMixedRealityServiceConfiguration configurations

GetDataProviderConfigurationList()

Allows implementations of a IMixedRealityDataProviderAccess system's inspector to provide custom data provider representations for data providers.

GetDataProviderConfigurationProperties(SerializedProperty)

Builds BaseDataProviderServiceInspector.ServiceConfigurationProperties container object with SerializedProperty references to associated properties on the supplied IMixedRealityServiceConfiguration reference

IsProfileInActiveInstance()

Helper function to determine if the current profile is assigned to the active instance of MRTK. In some cases profile data refers to other profile data in the MRTK config profile. In these cases, we don't want to render when the active instance isn't using this profile, because it may produce an inaccurate combination of settings.

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
IsProfileRequired(SystemType)

Inspect the attributes of the provided system type to determine if a configuration profile is required.

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
OnEnable() UnityEditor.Editor.OnEnable
RemoveDataProvider(Int32)

Removed given index item from IMixedRealityServiceConfiguration array list. Utilizes GetDataProviderConfigurationList() to get SerializedProperty object that represents array to delete against.

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 its contents if applicable and foldout is expanded.

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

RenderDocumentation(Object)

Draws a documentation link for the service.

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
RenderMRTKLogoAndSearch()

Render the Mixed Reality Toolkit Logo and search field.

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)
RenderProfileHeader(String, String, Object, Boolean, BaseMixedRealityToolkitConfigurationProfileInspector+BackProfileType)

Helper function to render header correctly for all profiles

(Inherited from BaseMixedRealityToolkitConfigurationProfileInspector)

Applies to