0 votes

The Godot docs for the object class says the following:

Registering it will allow the class to be instanced by scripts, code, or creating them again when deserializing.
Registering as virtual is the same but it can’t be instanced.
...
If an Object derived class is instanced but has not been registered, it will be registered as virtual automatically.

How is this possible? If registering a class as virtual means that it can't be instanced, then how is it that an instanced class will automatically be registered as virtual if it has not previously been registered? This seems like a contradiction.

(ps, is this the right place to ask questions about engine development?)

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.