Example #1
0
    static void AddWindow()
    {
        Rect             wr     = new Rect(0, 0, 900, 900);
        AnimationPreview window = (AnimationPreview)EditorWindow.GetWindowWithRect(typeof(AnimationPreview), wr, true, "Animation Player");

        window.Show();
    }
Example #2
0
        public override void AttachPreview(IAssetPreview preview)
        {
            animationPreview = (AnimationPreview)preview;
            animationPreview.SetTimeScale(timeScale);
            currentTime = 0.0f;
            animationPreview.UpdateViewModelTime = UpdateViewModelTime;

            // Automatically play the animation
            Play();
        }
Example #3
0
        public Form1()
        {
            InitializeComponent();
            _projectHolder.LoadProject(@"C:\GitHub\eWolfPixel\Pixel\DummyTestProject\");

            _imageEditor.EditImage         = _editImage;
            _imageEditor.PreviewImage      = _previewImage;
            _imageEditor.ColorImage        = _pictureColors;
            _imageEditor.ColorPreviewImage = _ColorPreviewPictureBox;

            InitializeServices();

            PopulateTree();

            _animationPreview = new AnimationPreview(_imageEditor, _animImage);

            CreateAnimationTimer();
        }