Class MixedRealityProfileUtility
This class has utilities and functions for working with profiles in the Unity editor.
Inheritance
MixedRealityProfileUtility
Assembly: cs.temp.dll.dll
public static class MixedRealityProfileUtility
Methods
Returns an array of GUIContent for use in a dropdown for a type of profile.
Includes a (None) option at the start. This means that the array length will always be 1 greater than the available profiles.
Declaration
public static GUIContent[] GetProfilePopupOptionsByType(Type profileType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Returns
Type |
Description |
GUIContent[] |
|
Returns an array of GUIContent for use in a dropdown for a type of profile.
Includes a (None) option at the start. This means that the array length will always be 1 greater than the available profiles.
Declaration
public static GUIContent[] GetProfilePopupOptionsByType(Type profileType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Returns
Type |
Description |
GUIContent[] |
|
Returns an array of profiles that match profile type.
Declaration
public static ScriptableObject[] GetProfilesOfType(Type profileType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Returns
Type |
Description |
ScriptableObject[] |
|
Returns an array of profiles that match profile type.
Declaration
public static ScriptableObject[] GetProfilesOfType(Type profileType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Returns
Type |
Description |
ScriptableObject[] |
|
Given a service type, finds all sub-classes of BaseMixedRealityProfile that are
designed to configure that service.
Declaration
public static IReadOnlyCollection<Type> GetProfileTypesForService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
Returns
Type |
Description |
IReadOnlyCollection<Type> |
|
Given a service type, finds all sub-classes of BaseMixedRealityProfile that are
designed to configure that service.
Declaration
public static IReadOnlyCollection<Type> GetProfileTypesForService(Type serviceType)
Parameters
Type |
Name |
Description |
Type |
serviceType |
|
Returns
Type |
Description |
IReadOnlyCollection<Type> |
|
Returns true if profile is NOT a BaseMixedRealityProfile class type.
Declaration
public static bool IsConcreteProfileType(Type profileType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Returns
Returns true if profile is NOT a BaseMixedRealityProfile class type.
Declaration
public static bool IsConcreteProfileType(Type profileType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Returns
Returns true if the given profile type is designed to configure the given service.
Declaration
public static bool IsProfileForService(Type profileType, Type serviceType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Type |
serviceType |
|
Returns
Returns true if the given profile type is designed to configure the given service.
Declaration
public static bool IsProfileForService(Type profileType, Type serviceType)
Parameters
Type |
Name |
Description |
Type |
profileType |
|
Type |
serviceType |
|
Returns