Jump to content

[SOLVED] add world init/shutdown callback to plugins


photo

Recommended Posts

Posted

I want to use unigine in AR(agument reality) development, and I've successfully integrated webcam capture under windows/linux by create another ui widgets, but I want to create a more common video capture plugin for AR usage.

 

and you know, this need to interact with hardware device, and I can create a method to script to call init/shutdown of plugin when world script init/shutdown.

 

But I think it's better for a plugin to have a init/shutdown function like world script's init/shutdown. Current init/shutdown functions are designed to be called at engine init/shutdown, that's not enough for these kind of plugins.

Posted

You can declare c++ worldInit/worldShutdown functions in the plugin, export and call them from the script.

Posted

Yes, I know this is a alternate solution, and this feature only needs a tiny modification of engine source, I've already added these functions in my build.

 

 

Thanks

×
×
  • Create New...