#if UNITY_EDITOR // We only need the original type in editor. using System; using UnityEngine.ResourceManagement.AsyncOperations; namespace UnityEngine.Localization { public partial class LocalizedAsset : LocalizedAssetBase where TObject : Object { /// /// The current loading operation for the asset when using . This is if a loading operation is not available. /// [Obsolete("CurrentLoadingOperation is deprecated, use CurrentLoadingOperationHandle instead.", true)] public AsyncOperationHandle? CurrentLoadingOperation => throw new NotSupportedException("CurrentLoadingOperation is obsolete. Please use CurrentLoadingOperationHandle instead."); [Obsolete("RegisterChangeHandler is obsolete. Please use the AssetChanged event instead.", true)] public void RegisterChangeHandler(ChangeHandler handler) { throw new NotSupportedException("RegisterChangeHandler is obsolete. Please use the AssetChanged event instead."); } [Obsolete("ClearChangeHandler is now obsolete. You should unsubscribe from the AssetChanged event instead.", true)] public void ClearChangeHandler() { throw new NotSupportedException("ClearChangeHandler is now obsolete. You should use the AssetChanged event instead."); } } } #endif