ngui scroll view UIDraggablePanel当grid移动时 判断方法
/// <summary>/// Move the panel by the specified amount.
/// </summary>
public void MoveRelative (Vector3 relative)
{
if (GameObject.Find("Panel-SelectWindows")!=null)
{
GameObject.Find("Panel-SelectWindows").GetComponent<UIPanel>().enabled = false;
}
//上面的是我自己加的
mTrans.localPosition += relative;
Vector4 cr = mPanel.clipRange;
cr.x -= relative.x;
cr.y -= relative.y;
mPanel.clipRange = cr;
UpdateScrollbars(false);
}
好帖就是要顶 顶顶多好 难得一见的好帖 很好哦 LZ真是人才 好帖就是要顶 顶顶多好 真心顶 难得一见的好帖