Addressable Assets Tutorial Download Code Example


Example: unity add addressables


using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets; //You need to have the addressables package from the package manager installed.

public class YourClassName : MonoBehaviour
{
//Add a script with this code to a Gameobject to get a List of assignable asset references
[SerializeField] private List<AssetReference> references = new List<AssetReference>();

//Add a script with this code to a Gameobject to get a List of assignable asset label references
[SerializeField] private List<AssetLabelReference> assetLabelReferences = new List<AssetLabelReference>();
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable