Files

16 lines
729 B
Lua
Raw Permalink Normal View History

2026-10-28 18:54:43 +07:00
-- One detached native UI object, immediately destroyed; no live page changes.
do
if not _G.__gacImageCtor1 then
_G.__gacImageCtor1=true
local obj
local ok,e=pcall(function()
obj=CS.UnityEngine.GameObject('GaCDetachedImageProbe',typeof(CS.UnityEngine.RectTransform),typeof(CS.UnityEngine.UI.Image))
obj:SetActive(false)
local image=obj:GetComponent(typeof(CS.UnityEngine.UI.Image))
local rect=obj:GetComponent(typeof(CS.UnityEngine.RectTransform))
CS.UnityEngine.Debug.Log('[GAC_IMAGE_CTOR] image='..tostring(image~=nil)..' rect='..tostring(rect~=nil))
end)
if obj then CS.UnityEngine.Object.Destroy(obj) end
if not ok then CS.UnityEngine.Debug.Log('[GAC_IMAGE_CTOR] ERROR '..tostring(e))end
end
end