- Home /
 
               Question by 
               prashantmgk · Oct 24, 2019 at 05:18 PM · 
                c#debug.log  
              
 
              How to get rid of "iPhoneUtils.Vibrate() UnityEngine.Handheld:Vibrate()" debug message.
I used Handheld.Vibrate() function for the vibration but I haven't logged the message anywhere in the script, but I still get the message in my console. Please let me know how can I get rid of this message. Thank you!
[1]: /storage/temp/147934-screenshot-20.png
 
                 
                screenshot-20.png 
                (230.5 kB) 
               
 
              
               Comment
              
 
               
              Answer by TaehoonYoon · Mar 15, 2021 at 03:08 AM
One way to get around this problem is to wrap Handheld.Vibrate() by #if !UNITY_EDITOR. Here is code.
 void DoSomthing()
 {
     ...
 #if !UNITY_EDITOR
     Handheld.Vibrate();
 #endif
     ...
 }
Your answer
 
 
             Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
collision system being buggy 0 Answers
Making a bubble level (not a game but work tool) 1 Answer
Debug.Log prints only sometimes. 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                