Class TypeUtility | Properties | 1.4.3-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class TypeUtility

    Utility class around Type.

    Inheritance
    Object
    TypeUtility
    Namespace: Unity.Properties.Editor
    Syntax
    public static class TypeUtility

    Methods

    GetRootType(Type)

    Utility method to return the base type.

    Declaration
    public static Type GetRootType(this Type type)
    Parameters
    Type Name Description
    Type type

    The Type for which we want the base type.

    Returns
    Type Description
    Type

    The base type.

    GetTypeDisplayName(Type)

    Utility method to get the name of a type which includes the parent type(s).

    Declaration
    public static string GetTypeDisplayName(Type type)
    Parameters
    Type Name Description
    Type type

    The Type we want the name of.

    Returns
    Type Description
    String

    The display name of the type.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023