Clarify when the changed signal is emitted for Resource and ShaderMaterial
This commit is contained in:
parent
0c2144da90
commit
bf62fb059c
2 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,7 @@
|
||||||
<method name="emit_changed">
|
<method name="emit_changed">
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Emits the [signal changed] signal. This method is called automatically for built-in resources.
|
Emits the [signal changed] signal. This method is called automatically for some built-in resources.
|
||||||
[b]Note:[/b] For custom resources, it's recommended to call this method whenever a meaningful change occurs, such as a modified property. This ensures that custom [Object]s depending on the resource are properly updated.
|
[b]Note:[/b] For custom resources, it's recommended to call this method whenever a meaningful change occurs, such as a modified property. This ensures that custom [Object]s depending on the resource are properly updated.
|
||||||
[codeblock]
|
[codeblock]
|
||||||
var damage:
|
var damage:
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
A material that uses a custom [Shader] program to render either items to screen or process particles. You can create multiple materials for the same shader but configure different values for the uniforms defined in the shader.
|
A material that uses a custom [Shader] program to render either items to screen or process particles. You can create multiple materials for the same shader but configure different values for the uniforms defined in the shader.
|
||||||
|
[b]Note:[/b] For performance reasons the [signal Resource.changed] signal is only emitted when the [member Resource.resource_name] is changed. Only in editor, is also emitted for [member shader] changes.
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
<link title="Shaders documentation index">$DOCS_URL/tutorials/shaders/index.html</link>
|
<link title="Shaders documentation index">$DOCS_URL/tutorials/shaders/index.html</link>
|
||||||
|
|
Loading…
Reference in a new issue