Declaration
public Action<PointerEventData> onDrag;
Description
Assign callback methods to the property through Lua to obtain event notifications when it is being dragged.
References: ParaUIDragger.onBeginDrag
local gameObject = CS.UnityEngine.GameObject.Find("imgDrag"); -- find a game object that have ParaUIDragger attached on
local dragger = gameObject:GetComponent(typeof(CS.ParaUIDragger));
dragger.onDrag = function(eventData)
print("draging delta",eventData.delta);
end