0 votes

I'm trying to find out if a particular module is compiled with the version of Godot I'm using (v3.0.1.stable.official).

I'm looking at using the websockets module. It is in the modules folder of the GitHub repo, but I haven't seen it mentioned in any patch notes. I'm wondering if it was included in the most recent release, or if I will have to compile the engine myself.

Cheers

in Engine by (27 points)
retagged by

1 Answer

+1 vote
Best answer

In the register_types.cpp for the module, you'll see which classes and instances are registered. If you check for the existence of those in GDScript, using ClassDB.can_instance or Engine.has_singleton you should be able to determine if the module has been built into the version of Godot you're running.

by (319 points)
selected by
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.