docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AdjustProperty

    AdjustProperty(string, Property)

    Adjust the value of the property with the given key by adding the given change to its current value. Work only with numeric properties.

    Declaration
    public Property AdjustProperty(string key, Property change)
    Parameters
    Type Name Description
    string key

    Identifier of the property to get the value of.

    Property change

    Change to apply to the current value of the property.

    Returns
    Type Description
    Property

    The new value of the property.

    Exceptions
    Type Condition
    ArgumentException

    If the key parameter is null, empty, or whitespace.

    NullReferenceException

    If this item has been discarded.

    PropertyNotFoundException

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

    InvalidOperationException

    Thrown if the property's type isn't a numeric type.

    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)