Merge pull request #105414 from KoBeWi/disable_uid_here

Add `@export_file_path` to export raw paths (no UID)
This commit is contained in:
Rémi Verschelde
2025-06-13 01:30:24 +02:00
14 changed files with 37 additions and 20 deletions

View File

@@ -2815,7 +2815,7 @@
Hints that an integer property is a bitmask using the optionally named avoidance layers.
</constant>
<constant name="PROPERTY_HINT_FILE" value="13" enum="PropertyHint">
Hints that a [String] property is a path to a file. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like [code]"*.png,*.jpg"[/code].
Hints that a [String] property is a path to a file. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like [code]"*.png,*.jpg"[/code]. By default the file will be stored as UID whenever available. You can use [ResourceUID] methods to convert it back to path. For storing a raw path, use [constant PROPERTY_HINT_FILE_PATH].
</constant>
<constant name="PROPERTY_HINT_DIR" value="14" enum="PropertyHint">
Hints that a [String] property is a path to a directory. Editing it will show a file dialog for picking the path.
@@ -2964,7 +2964,10 @@
- If it contains [code]"show_builtin"[/code], built-in input actions are included in the selection.
- If it contains [code]"loose_mode"[/code], loose mode is enabled. This allows inserting any action name even if it's not present in the input map.
</constant>
<constant name="PROPERTY_HINT_MAX" value="44" enum="PropertyHint">
<constant name="PROPERTY_HINT_FILE_PATH" value="44" enum="PropertyHint">
Like [constant PROPERTY_HINT_FILE], but the property is stored as a raw path, not UID. That means the reference will be broken if you move the file. Consider using [constant PROPERTY_HINT_FILE] when possible.
</constant>
<constant name="PROPERTY_HINT_MAX" value="45" enum="PropertyHint">
Represents the size of the [enum PropertyHint] enum.
</constant>
<constant name="PROPERTY_USAGE_NONE" value="0" enum="PropertyUsageFlags" is_bitfield="true">