Tools that can be used to get information adapted to the screen size. More...
Public Member Functions | |
| Vector3 | CalculateNewPosition (Vector3 Point, float depth) |
| Calculates the new position in relation to the main camera. More... | |
| Vector3 | CalculateNewPositionDepth (Vector3 Point, float depth) |
| Calculates the new position with depth in relation to the main camera. More... | |
| void | OrientMeshRenderer (MeshRenderer meshRenderer) |
| Properly orients a MeshRenderer in order to be displayed properly More... | |
Data Fields | |
| DeviceOrientation | currentOrientation |
Static Public Attributes | |
| static Action | OnOrientationChanged |
Protected Member Functions | |
| void | Awake () |
Properties | |
| static ManoUtils | Instance [get] |
Private Member Functions | |
| void | Start () |
| void | Update () |
| void | CheckForScreenOrientationChange () |
| Checks for changes on the orientation of the device. More... | |
| Vector3 | VectorAbs (Vector3 vector) |
| Retrieve the absolute values of a Vector3 More... | |
Private Attributes | |
| Vector3 | correction_ratio = Vector3.one |
| Camera | cam |
Static Private Attributes | |
| static ManoUtils | instance |
Tools that can be used to get information adapted to the screen size.
|
inlineprotected |
|
inline |
Calculates the new position in relation to the main camera.
| Point | Requires a Vector3 point |
| depth | Requires the float value of depth |
|
inline |
Calculates the new position with depth in relation to the main camera.
| Point | Requires a Vector3 point |
| depth | Requires the float value of depth |
|
inlineprivate |
Checks for changes on the orientation of the device.
|
inline |
Properly orients a MeshRenderer in order to be displayed properly
| meshRenderer | Mesh renderer. |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
Retrieve the absolute values of a Vector3
| vector | Requires a Vector3 value. |
|
private |
|
private |
| DeviceOrientation ManoUtils.currentOrientation |
|
staticprivate |
|
static |
|
staticget |