Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiplayerSpawner errors when spawning node with SubViewport #72939

Closed
soft-circles opened this issue Feb 9, 2023 · 1 comment
Closed

MultiplayerSpawner errors when spawning node with SubViewport #72939

soft-circles opened this issue Feb 9, 2023 · 1 comment
Labels

Comments

@soft-circles
Copy link

soft-circles commented Feb 9, 2023

Godot version

4.0.rc1

System information

MacOS Ventura 13.1, AMD Radeon Pro 5300M, Intel UHD Graphics 630, Rendering backend: Vulkan

Issue description

When spawning a scene that contains a SubViewport within its hierarchy via a MultiplayerSpawner with a custom spawn function set via set_spawn_function(<Callable>), Godot will produce an error:

Node not found: "SubViewport" (relative to "Sprite3D").
ViewportTexture: Path to node is invalid.

The texture still gets rendered out to whatever is trying to capture the SubViewport's texture (in this case a Sprite3D) but I don't expect to see an error here because the scene hierarchy is correct even in the Remote view.

Steps to reproduce

  1. Run the project
  2. Notice in the Debugger the two errors that appear

main.gd Attached to the root node in the main scene calls .spawn() on the MultiplayerSpawner node. Which has subviewport_scene.tscn as the only element in it's Auto Spawn List.

In subviewport_scene.tscn There is a Sprite3D with a SubViewport as it's child. The child of the SubViewport is a full screen ColorRect.

Minimal reproduction project

spawner_error.zip

@clayjohn
Copy link
Member

Duplicate of #27790

@clayjohn clayjohn marked this as a duplicate of #27790 Feb 28, 2023
@clayjohn clayjohn closed this as not planned Won't fix, can't repro, duplicate, stale Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants