Exemple #1
0
 /// <summary>
 /// Release the internal operation handle.
 /// </summary>
 public virtual void ReleaseAsset()
 {
     if (!m_Operation.IsValid())
     {
         Debug.LogWarning("Cannot release a null or unloaded asset.");
         return;
     }
     Addressables.Release(m_Operation);
     m_Operation = default(AsyncOperationHandle);
 }