docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method SetBool

    SetBool(string, bool, string)

    Stores the bool value in the Editor preferences for the calling property.

    Declaration
    public static void SetBool(string typeName, bool value, string propertyName = null)
    Parameters
    Type Name Description
    string typeName

    The name of the type which declares the property.

    bool value

    Value to set in Editor preferences.

    string propertyName

    Name of calling property. When invoking this function from a property getter or setter, you can leave this parameter blank and it will be filled in by 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)