–1 vote

i added child node to spawnPoint node in every 1minutes by timer.
https://imgur.com/7MvvOhY

i can not find it in debug menu.
how to view added node?
please help this.

yes,i know i can debug it with script.
extends Spatial

spawn_point.gd

var enemy = load("res://asset/character/enemy.tscn");

var enemy_counter = 1;
onready var timer_node = get_node("Timer");


func _on_Timer_timeout():
    enemySpawn();
    enemy_counter += 1;
    if enemy_counter > 3:
        timer_node.stop();

func enemySpawn():
    var enemy_instance = enemy.instance();
    enemy_instance.set_name("enemy" + str(enemy_counter));
    self.add_child(enemy_instance);
    print(enemy_instance);
in Engine by (200 points)

1 Answer

0 votes

When running your game, the editor provides access to the live scene tree. There you can "see" any nodes you're adding at runtime. Is that what you're after? If so:

  • Run your game
  • In the editor, just above the scene tree you'll see two tabs labeled "Remote" and "Local" (only visible when your game is running from within the editor)
  • Click on the "Remote" tab

Now, the scene tree that's displayed is from the live, running game and will update dynamically as nodes are added / removed / moved in the game.

by (12,460 points)

jgodfrey

thanks for comment.
what i said is exactly what you answerd.
i find "remote tab" in playing.

it can be view the spawn_point child.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.