Project_WL/Assets/Script/Util/AddressableReleaseSelf.cs

12 lines
255 B
C#
Raw Normal View History

2024-12-15 01:39:39 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
public class AddressableReleaseSelf : MonoBehaviour
{
void OnDestroy()
{
Addressables.ReleaseInstance(gameObject);
}
}