docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator +

    operator +(StatValue, StatValue)

    Add 2 StatValues together.

    Declaration
    public static StatValue operator +(StatValue a, StatValue b)
    Parameters
    Type Name Description
    StatValue a

    lhs.

    StatValue b

    rhs.

    Returns
    Type Description
    StatValue

    StatValue based upon the addition of both StatValues.

    Exceptions
    Type Condition
    InvalidCastException

    If StatValue is of invalid or unhandled 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)