Hide debug label for remote peers

godot4-port
unfa 2020-06-14 22:16:42 +02:00
parent 3eb3aba7eb
commit 8204bf91ba
1 changed files with 4 additions and 2 deletions

View File

@ -112,8 +112,10 @@ func _input(event):
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# only show the debug label on local machine
if name != String(get_tree().get_network_unique_id()):
debug.hide()
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):