Can I use external JS or C++ library with Defold

Hello,

I would like to use external JS or C++ library with Defold, but I don’t know that it is possible or not?

Thank you for your answer!

Yes, and it’s easy to do.

Use html5.run("alert('hello!')") to call external JS plus the JsToDef extension to call Defold game from JS.

Also, there is a guide about native extensions for Defold, i.e. how to write your own.

4 Likes

Thank you very much :slight_smile: