To vibrate Android device in the Unity, you need only one line of code.
which is,
Handheld.Vibrate();
that's All.
IF you develop the multi-platform app, Add pre-processor command to avoid the compilation error.
#if UNITY_ANDROID
Handheld.Vibrate();
#endif
Enjoy your job.
'English > Programming Tips' 카테고리의 다른 글
Best CC0 sprites for mobile developer (0) | 2017.01.24 |
---|---|
How to play cocos studio sprite animation (ActionTimeLine) (0) | 2016.11.04 |
Call android Toast methon in cocos2dx by using JNI function (C++) (0) | 2016.11.03 |
How to use pugixml in android cocos2d develop enviroment (pugixml singleton / pugixml local path) (0) | 2016.10.05 |
How to set pugi xml in android cocos2d develop enviroment (0) | 2016.10.05 |
How to use text with enableOutline in cocos2dx / runtime text creation with outline (0) | 2016.10.05 |
kingdom rush frontiers stage 10 get 3 stars (0) | 2016.10.04 |
최근댓글