Beispiel #1
0
        private void On_UI_FocusedFrameUpdated(BEHandle <BFrame> bEHandle)
        {
            BFrame bFrame = bEHandle.Arg1;

            if (cameraTransforms.ContainsKey(bFrame))
            {
                BFrameCameraTransform newCameraTransform = cameraTransforms[bFrame];
                cameraTransformLerp.StartValue   = lastCameraTransform.transform;
                cameraTransformLerp.EndValue     = newCameraTransform.transform;
                cameraTransformLerp.PlayDuration = newCameraTransform.TransitionTime;
                cameraTransformLerp.StartAnimation();

                lastCameraTransform = newCameraTransform;
            }
        }
Beispiel #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            BFrameCameraTransform myTarget = (BFrameCameraTransform)target;

            if (GUILayout.Button("Set Camera Transform To This"))
            {
                myTarget.SetCameraTransformToThis();
            }

            if (GUILayout.Button("Set This To Camera Transform"))
            {
                myTarget.SetThisToCameraTransform();
            }
        }