Merge pull request #94092 from allenwp/editor-export-plugin-docs-94045

`EditorExportPlugin` docs: Workaround for customized texture behavior
This commit is contained in:
Thaddeus Crews 2024-11-11 14:17:58 -06:00
commit 2cf5461b7d
No known key found for this signature in database
GPG Key ID: 62181B86FE9E5D84

View File

@ -35,9 +35,16 @@
<param index="0" name="resource" type="Resource" /> <param index="0" name="resource" type="Resource" />
<param index="1" name="path" type="String" /> <param index="1" name="path" type="String" />
<description> <description>
Customize a resource. If changes are made to it, return the same or a new resource. Otherwise, return [code]null[/code]. Customize a resource. If changes are made to it, return the same or a new resource. Otherwise, return [code]null[/code]. When a new resource is returned, [param resource] will be replaced by a copy of the new resource.
The [i]path[/i] argument is only used when customizing an actual file, otherwise this means that this resource is part of another one and it will be empty. The [param path] argument is only used when customizing an actual file, otherwise this means that this resource is part of another one and it will be empty.
Implementing this method is required if [method _begin_customize_resources] returns [code]true[/code]. Implementing this method is required if [method _begin_customize_resources] returns [code]true[/code].
[b]Note:[/b] When customizing any of the following types and returning another resource, the other resource should not be skipped using [method skip] in [method _export_file]:
- [AtlasTexture]
- [CompressedCubemap]
- [CompressedCubemapArray]
- [CompressedTexture2D]
- [CompressedTexture2DArray]
- [CompressedTexture3D]
</description> </description>
</method> </method>
<method name="_customize_scene" qualifiers="virtual"> <method name="_customize_scene" qualifiers="virtual">