Note
SubViewports in Godot 4 are bugged.
They work, but can be problematic, displaying errors that aren't there, or resetting the texture from time to time.
An example of one such bug is here.
Note
Detailed information on each class can be found in the individual source files.
You can find an example of using this plugin in the example folder.
All you need to do is create a scene with Control3D
and:
MeshInstance3D
- Used to display the content SubViewport needs:Mesh
(preferablyQuadMesh
)MaterialOverride
withViewportTexture
Area3D
- Used for mouse capture.SubViewport
- Used to render UI.
Licensed under MIT license.