You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Register the export info correctly when a global class script is used as the variable type for Node
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
class_name ExportVariableTest
|
||||
extends Node
|
||||
|
||||
const Utils = preload("../../utils.notest.gd")
|
||||
const PreloadedScript = preload("./export_variable.notest.gd")
|
||||
|
||||
# Built-in types.
|
||||
@export var test_weak_int = 1
|
||||
@@ -20,6 +22,10 @@ const Utils = preload("../../utils.notest.gd")
|
||||
@export var test_image: Image
|
||||
@export var test_timer: Timer
|
||||
|
||||
# Global custom classes.
|
||||
@export var test_global_class: ExportVariableTest
|
||||
@export var test_preloaded_script: PreloadedScript
|
||||
|
||||
# Arrays.
|
||||
@export var test_array: Array
|
||||
@export var test_array_bool: Array[bool]
|
||||
|
||||
Reference in New Issue
Block a user