songtao.han Posted April 8, 2019 Share Posted April 8, 2019 Hi guys! I am working on a test on easyblend plugin. But when I call an API of AppEasyBlendInterface, my application got killed, and there are not any useful information in the log file. Here are my code: int AppWorldLogic::init() { // Write here code to be called on world initialization: initialize resources for your world scene during the world start. AppEasyBlendInterface* easyblend; Log::message("Is EasyBlend enabled:%d\n", easyblend->isEnabled()); return 1; } Link to comment
alexander Posted April 8, 2019 Share Posted April 8, 2019 Hi songtao.han, You need to get the pointer to the AppEasyBlend interface from a loaded plugin. Use this: AppEasyBlendInterface* easyblend = (AppEasyBlendInterface*)Engine::get()->getPluginData(Engine::get()->findPlugin("AppEasyBlend")); Best regards, Alexander Link to comment
Recommended Posts