Difference between revisions of "DeviceOrientationMoveOnChange"

From Headbone Creative
Jump to: navigation, search
(Initial page, includes API information and categories)

Revision as of 03:24, 17 April 2013

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;

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox