- Home /
Question by
MonteyMontey · Jun 12, 2017 at 08:50 PM ·
c#unity 5lageventsystemmouseevent
Send Mouse Event
Is there any way to send a mouse event with code ?
If I start my game, there is an initial lag spike wenn I touch the screen for the first time.
My Profiler says that it's due to "MonobehaviourOnMouse_ > SendMouseEvents.DoSendMouseEvents()".
I now want to simulate that touch at the start of the game so it won't be noticed.
Is there a way to send a mouse/touch event to trigger "OnMouse" in C# ?
(I'm building in android/ios)
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers