void OnDestroy() { if (ModelAsset != null) { #if UNITY_EDITOR ModelAsset.DisposeEditor(); #else ModelAsset.Dispose(); #endif } }
void OnDestroy() { if (Expression != null) { Expression.Restore(); } if (ModelAsset != null) { #if UNITY_EDITOR ModelAsset.DisposeEditor(); #else ModelAsset.Dispose(); #endif } }