WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Documentation~/runtime/LoadingSingleAssets.md
2025-01-07 02:06:59 +01:00

6.2 KiB

uid
addressables-loading-single-asset

Loading a single asset

Use the LoadAssetAsync method to load a single Addressable asset, typically with an address as the key:

[!code-cssample]

Note

You can use a label or other type of key when you call LoadAssetAsync, not just an address. However, if the key resolves to more than one asset, only the first asset found is loaded. For example, if you call this method with a label applied to several assets, Addressables returns whichever one of those assets that happens to be located first.