Battery by krsmga - 3

GUI

This class provides resources for implementing an interface that shows the device's battery level and status. For Unity.

Unknown VersionMIT LicenseUpdated 15 days agoCreated on June 18th, 2020
Go to source

Battery

This class provides resources for implementing an interface that shows the device’s battery level and status. For Android or iOS devices.

Script settings in Inspector

Hierarchy example

Steps for use

  1. Attach the Battery.cs script to any Battery GameObject in the Scene.

  2. Battery Image: Attach an Image component to the battery image. Sample image.

  3. Fill Level Image: Attach an Image component to work as a battery level. Sample image.

  4. For the colors we have 3 color levels, Normal, Attention and Alert.

  5. In tests you can use to test the feature with the Editor running.

Result example

Show all projects by krsmga