示例#1
0
        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);
        }
示例#2
0
        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);
        }