O'Reilly logo

Unity 5 for Android Essentials by Valera Cogut

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Accessing Android Functionality

In this chapter, you will discover how to create plugins for Android platform by Java and C languages in Unity 5. You will learn in practice how to write simple plugins for the Android platform. Also, the reader will learn how to carry out an anti-piracy check, detect screen orientation, handle vibration support, determine device generation, and other more useful features. The topics that will be covered in this chapter are as follows:

  • Creating Java and native C plugins for an Android platform
  • Android scripting API in Unity 5
  • Accessing Android sensors and features within Unity 5

Creating Java and native C plugins for an Android platform

Before creating a Java or native C plugin for an Android platform inside ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required