godot-docs
godot-docs copied to clipboard
Best practices godot interfaces
Updated setter from
@export var const_script: Script:
set = set_const_script
func set_const_script(value):
if Engine.is_editor_hint():
const_script = value
to
@export var const_script: Script:
set(value):
if Engine.is_editor_hint():
const_script = value
This PR was unfortunately superseded by #7640.
I'm sorry we missed the duplicate. Thank you for your contribution nonetheless.