[FairyGUI][Unity][C#]FGUI当前对象
发布时间
阅读量:
阅读量
...
using FairyGUI;
...
Stage.inst.onClick.Add(btnClick);//鼠标点击
//Stage.inst.onTouchMove.Add(btnClick);//鼠标悬浮
...
private void btnClick(EventContext context)
{
Debug.Log("click :1:" + (GObject)context.sender);//FairyGUI.Stage
GComponent item = (GComponent)context.data;
//GComponent gc = item.asCom;//Object of type 'FairyGUI.InputEvent' doesn't match target type 'FairyGUI.GObject'
//Debug.Log("click :id:" + item.id+ "/name:" + item.name);//Object of type 'FairyGUI.InputEven
全部评论 (0)
还没有任何评论哟~
