docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ResetProperty

    ResetProperty(string)

    Reset the property with the given key to its default value.

    Declaration
    public Property ResetProperty(string key)
    Parameters
    Type Name Description
    string key

    The identifier of the property to reset.

    Returns
    Type Description
    Property

    Return the new property's value after its reset.

    Exceptions
    Type Condition
    NullReferenceException

    If this has been discarded.

    ArgumentNullException

    If the key is null, empty, or whitespace.

    PropertyNotFoundException

    If there is no property with the given key in this item.

    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)