From 161a4b9d602ffa6ab80fc794f804b014ceee84b9 Mon Sep 17 00:00:00 2001 From: jsjtxietian Date: Sun, 15 Oct 2023 20:59:01 +0800 Subject: [PATCH] Document UID behavior in ResourceSaver's save function --- doc/classes/ResourceSaver.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/ResourceSaver.xml b/doc/classes/ResourceSaver.xml index 7b90781fc56..42c9bd7a3c6 100644 --- a/doc/classes/ResourceSaver.xml +++ b/doc/classes/ResourceSaver.xml @@ -42,6 +42,7 @@ Saves a resource to disk to the given path, using a [ResourceFormatSaver] that recognizes the resource object. If [param path] is empty, [ResourceSaver] will try to use [member Resource.resource_path]. The [param flags] bitmask can be specified to customize the save behavior using [enum SaverFlags] flags. Returns [constant OK] on success. + [b]Note:[/b] When the project is running, any generated UID associated with the resource will not be saved as the required code is only executed in editor mode.