private static void OnDragDropFromHierarchyTransformToHierachyTransform( ushort handleIdxS, ushort handleIdxT) { TransformNative.TransformHandle handleS; handleS.idx = handleIdxS; TransformNative.TransformHandle handleT; handleT.idx = handleIdxT; TransformNative.TransformMove(handleS, handleT); SceneNode nodeS = Scene.GetSceneNode(handleS); SceneNode nodeT = Scene.GetSceneNode(handleT); nodeS.Move(nodeT); }
private static void OnDragDropFromHierarchyTransformToHierachyScene( ushort handleIdxS, ushort handleIdxT) { TransformNative.TransformHandle handleS; handleS.idx = handleIdxS; SceneNative.SceneHandle handleT; handleT.idx = handleIdxT; var root = SceneNative.SceneGetRoot(handleT); TransformNative.TransformMove(handleS, root); SceneNode node = Scene.GetSceneNode(handleS); Scene scene = Scene.GetScene(handleT); node.Move(scene.root); }