📜  unity add addressables - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:40.056000             🧑  作者: Mango

代码示例1
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 references = new List();
    
    //Add a script with this code to a Gameobject to get a List of assignable asset label references
    [SerializeField] private List assetLabelReferences = new List();
}