html按钮不属于UI 的component??
if UnityEngine.Input.GetMouseButtonDown(0) then
if FairyGUI.Stage.isTouchOnUI then
local obj = FairyGUI.GRoot.inst.touchTarget
if not self._component:IsAncestorOf(obj) then
self:OnClickClose()
end
else
self:OnClickClose()
end
end
代码如上 然后我点击了UI里生成的富文本的按钮之后 触发了关闭的方法 说明他不属于这个ui吗?
if FairyGUI.Stage.isTouchOnUI then
local obj = FairyGUI.GRoot.inst.touchTarget
if not self._component:IsAncestorOf(obj) then
self:OnClickClose()
end
else
self:OnClickClose()
end
end
代码如上 然后我点击了UI里生成的富文本的按钮之后 触发了关闭的方法 说明他不属于这个ui吗?
没有找到相关结果
已邀请:
0 个回复