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?
< >
Сообщения 11 из 1
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`.
< >
Сообщения 11 из 1
Показывать на странице: 1530 50

Дата создания: 21 июн. 2023 г. в 11:38
Сообщений: 1