docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class EditorUtils

    Utility methods for use in Editor code.

    Inheritance
    object
    EditorUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils.Editor
    Assembly: solution.dll
    Syntax
    public static class EditorUtils

    Methods

    Name Description
    GetAssetPreview(Object, Action<Texture>)

    Tries to get an AssetPreview for an asset.

    GetFieldInfoFromProperty(SerializedProperty)

    Gets the FieldInfo of a SerializedProperty.

    GetMemberAttributes(SerializedProperty)

    Gets the attributes of a SerializedProperty.

    GetMemberInfoFromPropertyPath(Type, string, out Type)

    Gets MemberInfo for a property by path.

    MaskField(Rect, GUIContent, int, string[], Type)

    Makes an Editor GUI control for mask properties.

    NicifySerializedPropertyType(string)

    Cleans up a string received from SerializedProperty.type.

    SerializedPropertyToField(SerializedProperty)

    Gets the FieldInfo for a given property.

    SerializedPropertyToType(SerializedProperty)

    Gets the Type of a SerializedProperty object, if possible.

    TypeNameToType(string)

    Gets the Type corresponding to the specified name string.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)