コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Addressable Asset System の AddressableAssetEntry.SetAddress はアドレスが変更された時のみ処理が実行されるようになっている

概要

public void SetAddress(string addr, bool postEvent = true)
{
    if (m_Address != addr)
    {
        m_Address = addr;
        if (string.IsNullOrEmpty(m_Address))
            m_Address = AssetPath;
        SetDirty(AddressableAssetSettings.ModificationEvent.EntryModified, this, postEvent);
    }
}