godot viewport size must be greater than 0 to render code example Example: node to viewport godot if node.get_class() == "Node":