remove warning when Skip Control is accessed in engine

This commit is contained in:
betalars 2025-03-23 14:52:45 +01:00
parent 7d0c8a70ad
commit 47ad59c2ff
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ var substring_sizes: Array[int]
func _ready() -> void: func _ready() -> void:
skip_control = %SkipControl skip_control = %SkipControl
if skip_control is SkipControl: if skip_control is SkipControl and not Engine.is_editor_hint():
skip_control.skip.connect(skip_text) skip_control.skip.connect(skip_text)
if get_tree().root.get_child(-1) == self: if get_tree().root.get_child(-1) == self: