docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Any 节点

    描述

    如果输入 In 的任何分量不为零,则返回 true。这对于分支(Branching)很有用。

    端口

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

    生成的代码示例

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

    void Unity_Any_float4(float4 In, out float Out)
    {
        Out = any(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)