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.


asked Feb 27 in Engine by AngelOnFira (27 points)
retagged Feb 27 by AngelOnFira

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.

answered Feb 28 by pgregory (261 points)
selected Feb 28 by AngelOnFira
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.