Ejemplo n.º 1
0
        private void RefreshAssetEditor()
        {
            var e = target as AnimationExpressionPreview;

            if (e == null || e.AnimationExpression == null)
            {
                AssetEditor = null;
            }
            else if (AssetEditor == null || AssetEditor.Asset != e.AnimationExpression)
            {
                AssetEditor = new AnimationExpressionEditor.ConcreteEditor(e.AnimationExpression, new SerializedObject(e.AnimationExpression));
            }
        }
Ejemplo n.º 2
0
 private void OnDisable()
 {
     AssetEditor = null;
 }