docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetPrefKey

    GetPrefKey(string, string)

    Gets a standardized Editor preference key name.

    Declaration
    public static string GetPrefKey(string typeName, string propertyName)
    Parameters
    Type Name Description
    string typeName

    The name of the type that declares the property.

    string propertyName

    Name of property.

    Returns
    Type Description
    string

    Editor preference key for property.

    Remarks

    Constructs the key name by combining the parent object type's full name and the property name.

    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)