Message 1 of 2
Callback comaptibility issues
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need to add retro-compatibility for this function
public void RegisterNodeAddedCallback()
{
if (!nodeAddedCallback)
{
m_NodeAddedDelegate = new GlobalDelegates.Delegate5(this.OnNodeAdded);
GlobalInterface.Instance.RegisterNotification(this.m_NodeAddedDelegate, null, SystemNotificationCode.SceneAddedNode );
nodeAddedCallback = true;
}
}In max 2019 the signature for OnNodeAdded is:
private void OnNodeAdded(IntPtr objPtr, INotifyInfo infoPtr)
{
IINode n = (IINode)infoPtr.CallParam;
}In max 2016 I the signature is this:
private void OnNodeAdded(IntPtr param0, IntPtr param1)
How can I get the node or his handle from this signature?