DeviceOrientationDetector

From Headbone Creative
Revision as of 02:10, 17 April 2013 by Tyson Joehler (Talk | contribs)

Jump to: navigation, search

This script keeps track of the current aspect ratio of the screen. When the aspect ratio changes, it notifies all DeviceOrientationListeners in the scene. There only needs to be one of these in the scene.

Public Functions

void FindAllListeners ()

This is called on Start to find all listeners in the scene. It can be called at other times if new listeners are added after the scene begins.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox