Beispiel #1
0
    private void OnClickResetButton()
    {
        ChromaSDKAnimation1D animation = GetAnimation();

        EditorUtility.SetDirty(animation);
        Unload();

        _mCurrentFrame = 0;

        animation.ClearFrames();
        animation.RefreshCurve();
    }
Beispiel #2
0
    private void OnClickSetDevice()
    {
        ChromaSDKAnimation1D animation = GetAnimation();

        EditorUtility.SetDirty(animation);
        Unload();

        if (animation.Device != _mDevice)
        {
            animation.Device = _mDevice;
            animation.ClearFrames();
            animation.RefreshCurve();
        }
    }
 private void ResetAnimation()
 {
     if (_mAnimation)
     {
         if (_mAnimation is ChromaSDKAnimation1D)
         {
             ChromaSDKAnimation1D animation = _mAnimation as ChromaSDKAnimation1D;
             animation.ClearFrames();
             animation.RefreshCurve();
         }
         else if (_mAnimation is ChromaSDKAnimation2D)
         {
             ChromaSDKAnimation2D animation = _mAnimation as ChromaSDKAnimation2D;
             animation.ClearFrames();
             animation.RefreshCurve();
         }
         ChromaSDKAnimationBaseEditor.GoToFirstFrame();
     }
 }