菜单切换¶

菜单切换 节点根据菜单的选择来输出其中一个输入项。只有通过了节点的输入项才会被计算。
可用的菜单项由用户定义。菜单项可在编辑器侧栏中添加、删除、重命名和重新排序。重新命名菜单项时,会保留匹配输入接口的已有链接。
The menu can be used in node groups and the nodes modifier UI. Connecting the menu input with a Group Input node will expose the menu as a group input. A menu socket in a node group, reroute node, or other pass-through nodes needs to be connected to a Menu Switch node in order to work. An unconnected menu socket will show an empty menu by default.
Connecting multiple Menu Switch nodes to the same output socket creates a conflict (even when the menu entries are the same). To avoid this a menu switch can be wrapped in a node group. Multiple node groups of the same type can be connected to the same menu, since they contain the same menu switch node.
See also
编号切换与之类似,但它以整数索引编号的形式提供选择。
输入¶
- 菜单
确定以下输入选项中的哪一个将被传送。
- 项目输入
每个菜单项都会创建一个输入。当选择匹配的选项时,输入项将被启用。可以通过 Ctrl-鼠标左键 在接口名称上或在节点 属性 面板中重命名项目。
属性¶
- 类型
确定节点处理的数据类型。
输出¶
- 输出
其中一个未经任何修改的输入项。