We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

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

    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>

    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
    In This Article
    Back to top Generated by DocFX