Esempio n. 1
0
        ///Just the tools to handle the initial virtual actor reference pos and rot
        void IDirectable.SceneGUI(bool selected)
        {
            if (!selected || !isActive)
            {
                return;
            }

            if (initialTransformation == ActorInitialTransformation.UseOriginal)
            {
                return;
            }

            if (actor != null && root.currentTime == 0)
            {
                var _initPos = initialLocalPosition;
                var _initRot = initialLocalRotation;
                SceneGUIUtility.DoVectorPositionHandle(this, TransformSpace.CutsceneSpace, ref _initPos);
                SceneGUIUtility.DoVectorRotationHandle(this, TransformSpace.CutsceneSpace, _initPos, ref _initRot);
                initialLocalPosition = _initPos;
                initialLocalRotation = _initRot;
            }
        }
Esempio n. 2
0
 protected bool DoVectorPositionHandle(TransformSpace space, ref Vector3 position)
 {
     return(SceneGUIUtility.DoVectorPositionHandle(this, space, ref position));
 }