This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

团体

This node combines a set of parameters, textures, states, and options into a single group in UnigineEditor.该节点结合了一组参数,纹理,状态, 和选项UnigineEditor 中的单个组。

The syntax is the following:语法如下:

ULON
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 节点内进行组合。也可以创建嵌套组(嵌套深度不受限制)。

ULON
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:使用示例:

ULON
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
Build: ()