DeviceOrientationMoveOnChange
From Headbone Creative
Revision as of 03:24, 17 April 2013 by Tyson Joehler (Talk | contribs)
This script will reposition the object it's attached to when the aspect ratio changes.
It has a custom editor with buttons that set the aspect ratio for iOS devices. It also maintains a list of settings for different aspect ratios.
Public Variables
public class PositionSettings { public float aspectRatio = 0.0f; public Vector3 position = Vector3.zero; };
/// <summary> /// The positions. /// </summary> public List<PositionSettings> positions = new List<PositionSettings>();
/// <summary> /// The use local position flag /// </summary> public bool useLocalPosition = true;