bernhard.gluck Posted December 2, 2019 Share Posted December 2, 2019 Hi ! Is there a way to write a C++ Node class ( for performance reasons ) in a C++ plugin and consume it from the C# side ? (Just like it is done for uniginescript ? ) I guess if this is possible it would require creating a custom wrapper class on the C# side, which would be no problem, but is it possible at all ? Link to comment
morbid Posted December 3, 2019 Share Posted December 3, 2019 Hello Bernhard, 15 hours ago, bernhard.gluck said: I guess if this is possible it would require creating a custom wrapper class on the C# side, which would be no problem, but is it possible at all ? Yes, this is possible and you have 2 options: Write C-wrapper for every used C++ function, then write C# wrapper that will use C-wrapper. Sounds like a tough and slow task Register C++ function in UnigineScript System Interpretator. Then you'll be able to use them in C# as a reflection or via Engine.runSystemFunction(). We used the same approach in AppVive plugin, you can check source code: <sdk>\source\plugins\App\AppVive In the future we'll try to make things easier by exposing tools for wrappers generation. Thanks. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts