steve3d Posted April 15, 2013 Posted April 15, 2013 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.
frustum Posted April 15, 2013 Posted April 15, 2013 You can declare c++ worldInit/worldShutdown functions in the plugin, export and call them from the script.
steve3d Posted April 15, 2013 Author Posted April 15, 2013 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
Recommended Posts