团体
This node combines a set of parameters, textures, states, and options into a single group in UnigineEditor.该节点结合了一组参数,纹理,状态, 和选项UnigineEditor 中的单个组。
The syntax is the following:语法如下:
Group name
{
// some parameters
}
Usage Example使用示例#
Put the parameters inside the Group node to combine them. It is also possible to create nested groups (nesting depth is unlimited).将参数放在 Group 节点内进行组合。也可以创建嵌套组(嵌套深度不受限制)。
Group group_example
{
Float width = 1.0f <min=0 max=2>
Float height = 1.0f <min=0 max=2>
Group nested_group_1
{
Float3 light_pos = [-6 -6 0]
Int two_sided = false <min=0 max=2>
}
Group nested_group_2
{
ArrayFloat array_example = [1 2 3 4 5] <size=5>
Mask24 mask24_example = 4096
}
}
Arguments论据#
merge_groupmerge_group#
Boolean
Enables the identical named groups merging for inheritance. The group in the child material will be merged with parent group that have the same name.启用相同命名的组合并以进行继承。子材质中的组将与同名的父组合并。
Available values:可用值:
- false — disable (by default)false — 禁用(默认)
- true — enable true — 启用
toggle_statetoggle_state#
String
Name of the state that is used to toggle the group.用于切换组的状态名称。
Usage Example:使用示例:
State my_group_toggle = false
Group "My Group" if [my_group_toggle] <toggle_state = my_group_toggle>
{
Slider my_group_slider = 0
State my_group_state = true
}
最新更新:
2023-06-21
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)