add in scenenode.h
EXPORT IntPtr SceneNode_GetMesh(IntPtr node);
in scenenode.cpp
IntPtr SceneNode_GetMesh(IntPtr node)
{
return ((IMeshSceneNode*)node)->getMesh();
}
compile libirrlicht.a
add in SceneNode.cs
public Mesh Mesh
{
get
{
return (Mesh)
NativeElement.GetObject(SceneNode_GetMesh(_raw),
typeof(Mesh));
}
}
[DllImport(Native.Dll), SuppressUnmanagedCodeSecurity]
static extern IntPtr SceneNode_GetMesh(IntPtr node);
gotcha, now we can see the Mesh.