Ejemplo n.º 1
0
        IEnumerator Bake(Action callback)
        {
            state = CaptureState.BakingAnimation;
            yield return(StartCoroutine(currentTake.Bake()));

            Logger.Info("Finished recording of length: " + (currentTake.BakeTime - currentTake.CreationTime));
            Logger.Info("Number of channels: " + currentTake.ChannelCount);
            Logger.Info("Number of frames: " + currentTake.GetChannel(currentTake.ChannelNames.First()).keyframes.Count);
            if (callback != null)
            {
                callback();
            }
            if (OnStopRecording != null)
            {
                OnStopRecording();
            }
        }