docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Operator operator -

    operator -(StatValue, StatValue)

    Subtract StatValue from another StatValue.

    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 subtracting a StatValue from another StatValue.

    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)