How to implement UnitySendmessage in tizen native shared library so that i can callback to C# script. Currently i am passing delegate (Function ptr) to native library but when i call this it crashes.
Hi, I'm not sure what you've done so far but have you taken a look at the Plugins for Tizen docs? http://docs.unity3d.com/Manual/PluginsForTizen.html David
ok, the url says to use UnitySendMessage but if you type that on a tizen native library it says it's not defined. So which library do we need to include for it to compile?
There is an option to disable checking undefined symbol on Tizen Studio. Please right click on the project, then select properties. Maybe you can find it on link setting.
yep I saw it, but it stops working after a while because the unity engine stops as soon as you display any UI component (or at least a window) from your native plugin. I haven't figured out a way to pass a Unity object to Tizen. I'm trying to get a surface or something so I can display video/webcam into it. No luck so far because it doesn't seem to be any documentation on how to pass those as parameters.
You need to check this out System.Runtime.InteropServices.Marshal https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.marshal(v=vs.110).aspx You can pass pointers to memory locations in and out of native plugin. I think that can help you.
yep you can pass pointers, but which one is the one that is compatible to modify the material texture from inside a native plugin?
@creat327 Do you want to use movie texture on Tizen? I tested it before, I'll try to update it on the Unity Asset Store.
Not movie texture. I want to get a reference to the material so I can draw on it from the webcam for instance. I'm not interested on an asset because I'm programming this myself and I can't use third parties. Surely there is a way to pass that surface to Tizen to draw on it