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

6.4 KiB

uid
addressables-loading-asset-reference

Loading an AssetReference

The AssetReference class has its own load method, LoadAssetAsync.

[!code-cssample]

You can also use the AssetReference object as a key to the Addressables.LoadAssetAsync methods. If you need to spawn multiple instances of the asset assigned to an AssetReference, use Addressables.LoadAssetAsync, which gives you an operation handle that you can use to release each instance.

See AssetReference for more information about using AssetReferences.