Godot Engine

Godot Engine

Why is Godot not allowing me to create a viewport?
For some reason, I can't create a viewport as a child node. I want to make a first person game, but cannot do so without the viewport node as it will not render. The viewport node is grayed out in the create child node menu for some reason. I don't know why.

I have used google, duckduckgo, hell, even bing, with different key terms and variations of my question, but not a single search engine I've used has come up with a single result that has the solution to my problem, much less a mention of the problem in question. I've read the docs regarding viewports, watched countless outdated videos, but not a single solution has appeared.

Can anyone please tell me how to fix this?
< >
Showing 1-1 of 1 comments
Romløk Jun 21, 2023 @ 12:25pm 
If a node is greyed out in the tree, it means you can't instantiate that kind of node because you're only supposed to instantiate one of its subclasses.

It looks like in Godot 4 `Viewport` is indeed subclassed by various more specialised node types, so the node you want now is most likely the one named `SubViewport`.
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Jun 21, 2023 @ 11:38am
Posts: 1