mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class MixedRealityProfileUtility

    This class has utilities and functions for working with profiles in the Unity editor.

    Inheritance
    Object
    MixedRealityProfileUtility
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public static class MixedRealityProfileUtility

    Methods

    GetProfilePopupOptionsByType(Type)

    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[]

    GetProfilePopupOptionsByType(Type)

    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[]

    GetProfilesOfType(Type)

    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[]

    GetProfilesOfType(Type)

    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[]

    GetProfileTypesForService(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>

    GetProfileTypesForService(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>

    IsConcreteProfileType(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
    Type Description
    Boolean

    IsConcreteProfileType(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
    Type Description
    Boolean

    IsProfileForService(Type, Type)

    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
    Type Description
    Boolean

    IsProfileForService(Type, Type)

    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
    Type Description
    Boolean
    In This Article
    • Methods
      • GetProfilePopupOptionsByType(Type)
      • GetProfilePopupOptionsByType(Type)
      • GetProfilesOfType(Type)
      • GetProfilesOfType(Type)
      • GetProfileTypesForService(Type)
      • GetProfileTypesForService(Type)
      • IsConcreteProfileType(Type)
      • IsConcreteProfileType(Type)
      • IsProfileForService(Type, Type)
      • IsProfileForService(Type, Type)
    Back to top Generated by DocFX