docs.unity.cn
    Show / Hide Table of Contents

    Or (Logic)

    Menu Path : Operator > Logic > Or

    The Or Operator takes two inputs and outputs the result of a logical or operation between them. The result of A Or B is true if either A or B is true. This Operator is equivalent to the C# || operator.

    Operator properties

    Input Type Description
    A bool The left operand. If this is true then o is true.
    B bool The right operand. If this is true then o is true.
    Output Type Description
    o bool If A or B is true, this value is true. Otherwise, if both A and B are false this value is false.
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Tuesday, June 29, 2021