# GvrUIHelpers Class Reference

# GvrUIHelpers

Helper class for dealing with canvas UI.

## Summary

| ### Public static functions ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrUIHelpers#classGvrUIHelpers_1af0ce491041b76178a1654335c7d0f618(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

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

<br />

| 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. |