public UAssetDatabaseAsset(string assetPath, Type type, EAssetHints hints, float delay) : base(assetPath, type) { if ((hints & EAssetHints.Synchronized) == 0 && delay > 0f) { JobScheduler.DispatchMainAfter(() => { _OnAssetLoaded(); }, delay); } else { _OnAssetLoaded(); } }
public UAssetDatabaseAsset(string assetPath, Type type, float delay) : base(assetPath) { _type = type; if (delay > 0f) { JobScheduler.DispatchMainAfter(() => { _OnAssetLoaded(); }, delay); } else { _OnAssetLoaded(); } }