6.4 KiB
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.