public class UIElementDragger : EventTrigger
{
public override void OnDrag(PointerEventData eventData)
{
transform.position = new Vector2(Input.mousePosition.x, Input.mousePosition.y);
}
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
or simply use:
public class UIElementDragger : EventTrigger { public override void OnDrag(PointerEventData eventData) { transform.position = new Vector2(Input.mousePosition.x, Input.mousePosition.y); } }