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)); } }
private void OnDisable() { AssetEditor = null; }