GvrUIHelpers

Helper class for dealing with canvas UI.

Summary

Public static functions

GetMetersToCanvasScale(Transform canvasObject)
float
Finds the meters scale for the local coordinate system of the root canvas that contains the canvasObject passed in.

Public static functions

GetMetersToCanvasScale

float GetMetersToCanvasScale(
  Transform canvasObject
)

Finds the meters scale for the local coordinate system of the root canvas that contains the canvasObject passed in.

Details
Parameters
canvasObject
The UI canvas object for which to find the scale.
Returns
The meters scale for the local coordinate system of the root UI canvas.