bool
true when an asset is assigned; otherwise, false.
Returns whether this entry has an asset assigned.
Tests the stored reference without loading anything, so it is cheap to call before resolving the asset.
Additional resources: IAssetEntry.ReleaseAsset
<para>Skip the load when the entry has no asset.</para>
using Unity.Localization; using UnityEngine;
namespace Unity.Localization.Samples { public class IAssetEntryHasAssetExample { public void Run() { var entry = new ResourceAssetEntry(); Debug.Log(entry.HasAsset()); // False: no path set
entry.Default = "UI/banner"; // a path under a Resources folder Debug.Log(entry.HasAsset()); // True } } }