Beispiel #1
0
        /// <summary>
        /// Gets a bool indicating if this resource has already been redirected before.
        /// </summary>
        public bool HasReferenceBeenRedirectedBefore(UnityEngine.Object asset)
        {
            var ext = asset.GetExtensionData <ResourceExtensionData>();

            return(ext != null && ext.HasBeenRedirected);
        }
Beispiel #2
0
 /// <summary>
 /// Gets a bool indicating if this resource has already been redirected before.
 /// </summary>
 public bool HasReferenceBeenRedirectedBefore(UnityEngine.Object asset)
 {
     return(asset.GetExtensionData <ResourceExtensionData>()?.HasBeenRedirected == true);
 }