Stay organized with collections
Save and categorize content based on your preferences.
Misc utilities for Cardboard widgets.
Summary
Properties
|
AlignmentRect
|
static RectInt
Gets the rectangle for the alignment divider in pixels in safe area coordinates.
|
CloseButtonRect
|
static RectInt
Gets the rectangle for the close button in pixels in full screen coordinates.
|
CloseButtonRenderRect
|
static RectInt
Gets the content rendering rectangle for the close button in pixels in safe area coordinates.
|
GearButtonRect
|
static RectInt
Gets the rectangle for the gear button in pixels in full screen coordinates.
|
GearButtonRenderRect
|
static RectInt
Gets the content rendering rectangle for the gear button in pixels in safe area coordinates.
|
Properties
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eGoogle.XR.Cardboard.Widget provides miscellaneous utilities for Cardboard widgets in Unity.\u003c/p\u003e\n"],["\u003cp\u003eIt offers properties to access the screen-space rectangles of UI elements like the alignment divider, close button, and gear button.\u003c/p\u003e\n"],["\u003cp\u003eThese properties return \u003ccode\u003eRectInt\u003c/code\u003e values, representing the rectangles in either full screen or safe area coordinates, in pixels.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAlignmentRect\u003c/code\u003e, \u003ccode\u003eCloseButtonRenderRect\u003c/code\u003e, and \u003ccode\u003eGearButtonRenderRect\u003c/code\u003e provide positions in safe area coordinates while \u003ccode\u003eCloseButtonRect\u003c/code\u003e and \u003ccode\u003eGearButtonRect\u003c/code\u003e are in full screen coordinates.\u003c/p\u003e\n"]]],[],null,["# Google.XR.Cardboard.Widget Class Reference\n\nGoogle.XR.Cardboard.Widget\n==========================\n\nMisc utilities for [Cardboard](/cardboard/reference/unity/namespace/Google/XR/Cardboard#namespaceGoogle_1_1XR_1_1Cardboard) widgets.\n\nSummary\n-------\n\n| ### Properties ||\n|-------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [AlignmentRect](#classGoogle_1_1XR_1_1Cardboard_1_1Widget_1ac7937f0c1f4cff07bc2dd0ec5b888f6b) | `static RectInt` Gets the rectangle for the alignment divider in pixels in safe area coordinates. |\n| [CloseButtonRect](#classGoogle_1_1XR_1_1Cardboard_1_1Widget_1a3d2ec3dab8571c3c5e019fb2201be51c) | `static RectInt` Gets the rectangle for the close button in pixels in full screen coordinates. |\n| [CloseButtonRenderRect](#classGoogle_1_1XR_1_1Cardboard_1_1Widget_1a7f9f4e862d5cec503fd008e43136df79) | `static RectInt` Gets the content rendering rectangle for the close button in pixels in safe area coordinates. |\n| [GearButtonRect](#classGoogle_1_1XR_1_1Cardboard_1_1Widget_1a8657b23e3eea7c90426431e1244f2064) | `static RectInt` Gets the rectangle for the gear button in pixels in full screen coordinates. |\n| [GearButtonRenderRect](#classGoogle_1_1XR_1_1Cardboard_1_1Widget_1a7d15f1abc53ff31f12ca4fec0826a5c6) | `static RectInt` Gets the content rendering rectangle for the gear button in pixels in safe area coordinates. |\n\nProperties\n----------\n\n### AlignmentRect\n\n```c#\nstatic RectInt AlignmentRect\n``` \nGets the rectangle for the alignment divider in pixels in safe area coordinates. \n\n### CloseButtonRect\n\n```c#\nstatic RectInt CloseButtonRect\n``` \nGets the rectangle for the close button in pixels in full screen coordinates. \n\n### CloseButtonRenderRect\n\n```c#\nstatic RectInt CloseButtonRenderRect\n``` \nGets the content rendering rectangle for the close button in pixels in safe area coordinates. \n\n### GearButtonRect\n\n```c#\nstatic RectInt GearButtonRect\n``` \nGets the rectangle for the gear button in pixels in full screen coordinates. \n\n### GearButtonRenderRect\n\n```c#\nstatic RectInt GearButtonRenderRect\n``` \nGets the content rendering rectangle for the gear button in pixels in safe area coordinates."]]