using System; using UnityEngine; public class TexturePointerCheck : MonoBehaviour { public Texture2D texture; private IntPtr start; private void Start() { if (texture != null) { start = texture.GetNativeTexturePtr(); Debug.Log($"Texture {texture.name} has pointer {start}"); } } private void Update() { if (texture != null && start != texture.GetNativeTexturePtr()) { Debug.LogError(start + " != " + texture.GetNativeTexturePtr()); start = texture.GetNativeTexturePtr(); } } }