Answers for "unity add addressables"

C#
1

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>();
}
Posted by: Guest on July-25-2020

C# Answers by Framework

Browse Popular Code Answers by Language