Ver código fonte

:beetle: Add exported variable

Was reproducing the bug in inspector only.
DricomDragon 2 anos atrás
pai
commit
d0233b8b32
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      BugReport_EditorOversizedCustomIcon/CustomNode.gd

+ 5 - 0
BugReport_EditorOversizedCustomIcon/CustomNode.gd

@@ -1,3 +1,8 @@
 @icon("res://icon.svg")
 class_name CustomNode
 extends Node2D
+
+@export var exp_var: String = "Hello"
+
+func _ready():
+	print("Exported var : ", exp_var)