-
Notifications
You must be signed in to change notification settings - Fork 117
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
SubViewport as Root causes errors #219
Comments
Hey, so I've spent a little bit of time playing around with this. I've managed to get a subviewport going and excluded the HUD (cause I assume any viewport shaders shouldn't affect the UI) Please note that I've removed the PlayerHUD and PauseMenu from the Player.tscn and instead added them here manually and then assigned them in the inspector of the Player.tscn. This seems to get at least the expected results visually, but I mouse input stops working when doing it this way (gamepad input still works). Also as soon as any script calls |
Oh, if you move the PlayerHUD and the Pause Menu outside of the Player.tscn, you need to manually set the references. In this case, I assume that error is cause by the PlayerHUD node not having a reference set to the Player node. |
Got it, it was just the playerhud that didn't have a reference set, thanks for the fix! |
Now I see what you mean, my mouse movements don't affect the player, and I can't click or hover over anything either. I'll try and look into this later. |
Cogito and Godot Engine Version:
Cogito Master (June 18th) / Godot 4.2.2 stable
Description:
Making a new scene, and making a subviewport container and a subviewport parents of the node3D containing the environment/level, gives me this error.
Reproduction steps:
Make any 3D scene/3D root node a child of a SubViewportContainer with a SubViewport, and simply start the scene.
Making a new scene from scratch, with the ViewPort as a root, and the 3D node containing the level does not fix the issue either.
Expected behavior:
No issues? Doing this never caused an issue during older versions with the legacy demo.
By the way, I am very new to Godot, so forgive me if this is just a simple fix that I am not aware of.
The text was updated successfully, but these errors were encountered: