trying to fix mask visibility in build
This commit is contained in:
@@ -12,28 +12,9 @@ class_name Mask
|
||||
|
||||
func _on_mask_resource_changed() -> void:
|
||||
if mask_resource == null:
|
||||
mask_sprite.visible = false
|
||||
return
|
||||
if mask_sprite != null:
|
||||
mask_sprite.visible = true
|
||||
mask_sprite.texture = mask_resource.mask_sprite
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if Engine.is_editor_hint():
|
||||
_engine_process(delta)
|
||||
else:
|
||||
_game_process(delta)
|
||||
|
||||
|
||||
func _game_process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _engine_process(delta: float) -> void:
|
||||
if mask_resource == null:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user