docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Not 节点

    描述

    返回输入 In 的相反值。如果 In 为 true,则输出为 false,否则为 true。这对于分支(Branching)很有用。

    端口

    名称 方向 类型 绑定 描述
    In 输入 布尔值 (Boolean) 无 输入值
    Out 输出 布尔值 (Boolean) 无 输出值

    生成的代码示例

    以下示例代码表示此节点的一种可能结果。

    void Unity_NormalUnpack_float(float In, out float Out)
    {
        Out = !In;
    }
    
    
    In This Article
    Back to top
    Copyright © 2025 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)