Cannot import defos extension


I have issues with defos extension. I include it to project via dependencies.
But I have error
> /main/gui/cursor.script
> The file ‘/defos/defos.lua’ could not be found.

Also I tried run the example

But result was same.
I use Defold
Version: 1.4.1
Channel: editor-alpha

Have you selected Project->Fetch Libraries after adding it to game.project?

1 Like

Since DefOS is a native extension, you don’t need to use require to import it. That example hasn’t been updated in a long time but there’s a newer one in the DefOS repo:

1 Like

Thank you.

I delete import statement and call defos.set_cursor_visible() function

It works fine.