- Edited
I wonder if this is intent or not? So I have 2 scripts
#main script that attach to node
extends Object
export(Resource) other
#other script as resource for main script
class_name OtherClass extends Resource
export(String) var string: String
export(int) var num: int
func _init():
print(string)
# expect: value from inspector
# result: empty
print(num)
# expect: value from inspector
# result: 0
But when _ready() from main script is executing, value from inspector is already assign to variables properly