浏览代码

Merge pull request #85717 from thmasn/master

Explain parameter usage in GPUParticles3D and GPUParticles2D
Yuri Sizov 1 年之前
父节点
当前提交
7798ea773b
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      doc/classes/GPUParticles2D.xml
  2. 1 0
      doc/classes/GPUParticles3D.xml

+ 1 - 0
doc/classes/GPUParticles2D.xml

@@ -37,6 +37,7 @@
 			<param index="4" name="flags" type="int" />
 			<param index="4" name="flags" type="int" />
 			<description>
 			<description>
 				Emits a single particle. Whether [param xform], [param velocity], [param color] and [param custom] are applied depends on the value of [param flags]. See [enum EmitFlags].
 				Emits a single particle. Whether [param xform], [param velocity], [param color] and [param custom] are applied depends on the value of [param flags]. See [enum EmitFlags].
+				The default ParticleProcessMaterial will overwrite [param color] and use the contents of [param custom] as [code](rotation, age, animation, lifetime)[/code].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="restart">
 		<method name="restart">

+ 1 - 0
doc/classes/GPUParticles3D.xml

@@ -35,6 +35,7 @@
 			<param index="4" name="flags" type="int" />
 			<param index="4" name="flags" type="int" />
 			<description>
 			<description>
 				Emits a single particle. Whether [param xform], [param velocity], [param color] and [param custom] are applied depends on the value of [param flags]. See [enum EmitFlags].
 				Emits a single particle. Whether [param xform], [param velocity], [param color] and [param custom] are applied depends on the value of [param flags]. See [enum EmitFlags].
+				The default ParticleProcessMaterial will overwrite [param color] and use the contents of [param custom] as [code](rotation, age, animation, lifetime)[/code].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_draw_pass_mesh" qualifiers="const">
 		<method name="get_draw_pass_mesh" qualifiers="const">