When constructing an Engine we can specify a number of options:
For some of the options like “stencil” there is an “is” method in the engine. We can call isStencilEnabled - Engine | Babylon.js Documentation
I was able to find a get method for this option and for a few of the others. But I could not find a method for all the options.
Here is our use case and there reason why we need it.
In our buildin3d platform we call new BABYLON.Engine in one place. Different extensions provide the options for the engine. The Screenshot extension provides the option preserveDrawingBuffer which is not needed otherwise if the Screenshot extension is not enabled.
This means that there is logic for calling new BABYLON.Engine(). We would like to test this logic. In order to test this logic a new engine is created in the production code and in the spec we would like to inspect the options that were used for creation of this engine.
which I assume is private.
Is there a way we could access _creationOptions in a public way? Is there a chance for such a way to be introduced to make it possible to spec the engine creations?