Godot 4.3 Sub Viewport not working in 2D?

I have a SubViewport and a Camera2D as its child node. The problem is I have a ninePatchRect to which the image is supposed to be transferred, but it's not working, and the ninePatchRect just keeps displaying gray. Also, the camera is no longer visible when you make it a child of the SubViewport. I tried the same thing in 3D, and everything works there, but strangely enough, it doesn't work in 2D. By the way, I'm using Godot 4.3 beta 2.

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
odderanders
9 months ago

Hey,

It seems that in Godot 4.3 Beta 2 there are some problems with using Sub Viewports and Camera2D in 2D projects.

Possible causes:

* Bug in Godot 4.3 Beta 2: It is possible that this is a mistake in the engine itself.

* Wrong settings: It is possible that the settings of the Sub Viewport, the Camera2D or the NinePatchRect are incorrect.

* Compatibility problems: It is possible that there are compatibility problems between the Sub Viewport, the Camera2D and the NinePatchRect.

Solution approaches:

* Update on Godot 4.3: It is possible to fix this problem in a newer version of Godot.

* Check the settings: Make sure that the settings of the Sub Viewport, the Camera2D and the NinePatchRect are correct.

* Use an alternative method: It is possible to achieve a similar result with another method, for example with a viewport and a TextureRect.

Love