- Home /
Question by
benforcapita · May 03, 2018 at 03:07 PM ·
eventsimulation
Simulate Drag Event
Hey, I need to simulate drag, on an object by code and I cant call the functions inside the "OnBeginDrag" method. Is there a way to Simulate that Event?
Comment
Why do you want to simulate the event? When? Who should simulate the event?
Can't you simply wrap the body of the OnBeginDrag
function into an other function you call when you want to "simulate" the event?
Please, provide a $$anonymous$$imum of information if you want precise help...
Your answer
![](https://koobas.hobune.stream/wayback/20220612161954im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Ui button click on Canvas 2 Answers
Colliders Events 1 Answer
'Player' AnimationEvent 'impact' has no receiver! 0 Answers
Concrete Delegate vs EventHandler for Events 1 Answer
Raycast against UI in world space 4 Answers