AddresableSystemのラベルリファレンス

version0.6.3あたり?

プレビュー版のAddresableSystemのAssetLabelReferenceアトリビュートがちょっと変わったんでMEMO。

using System;

#if UNITY_EDITOR
using UnityEditor.AddressableAssets.GUI;
#endif
public class AssetInitialize : MonoBehaviour
{
#if UNITY_EDITOR
    [AssetReferenceUILabelRestriction("labelName")]
#endif 
    public AssetReference targetReference;

#if UNITY_EDITORで囲む必要があります。

AssetLabelReferenceは無くなったみたいです。

コメント

タイトルとURLをコピーしました