This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
GvrControllerReticleVisual.FaceCameraData
Camera facing positioning data.
Summary
These are parameters for restricting recenters along given euler angle axes.
Public attributes
|
alongXAxis
|
bool
Value true if aligned on X axis.
|
alongYAxis
|
bool
Value true if aligned on Y axis.
|
alongZAxis
|
bool
Value true if aligned on Z axis.
|
Properties
|
IsAnyAxisOff
|
bool
Gets a value indicating whether any axis is off.
|
Public attributes
alongXAxis
bool GvrControllerReticleVisual::FaceCameraData::alongXAxis
Value true
if aligned on X axis.
If true
, the eulerAngle.x
is set to 0 (relative to the designated Camera) after a recenter. Otherwise, eulerAngle.x
is determined by relative look-positon from the Camera.
alongYAxis
bool GvrControllerReticleVisual::FaceCameraData::alongYAxis
Value true
if aligned on Y axis.
If true
, the eulerAngle.y
is set to 0 (relative to the designated Camera) after a recenter. Otherwise, eulerAngle.y
is determined by relative look-positon from the Camera.
alongZAxis
bool GvrControllerReticleVisual::FaceCameraData::alongZAxis
Value true
if aligned on Z axis.
If true
, the eulerAngle.z
is set to 0 (relative to the designated Camera) after a recenter. Otherwise, eulerAngle.z
is determined by relative look-positon from the Camera.
Properties
IsAnyAxisOff
bool GvrControllerReticleVisual::FaceCameraData::IsAnyAxisOff
Gets a value indicating whether any axis is off.
Value false
if along any axis, true
otherwise.
Public functions
FaceCameraData
GvrControllerReticleVisual::FaceCameraData::FaceCameraData(
bool startEnabled
)
Initializes a new instance of the FaceCameraData struct.
Details |
Parameters |
startEnabled
|
Whether the axes should start enabled.
|
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003eGvrControllerReticleVisual.FaceCameraData\u003c/code\u003e provides camera-facing positioning data, controlling the reticle's alignment.\u003c/p\u003e\n"],["\u003cp\u003eIt uses boolean properties (\u003ccode\u003ealongXAxis\u003c/code\u003e, \u003ccode\u003ealongYAxis\u003c/code\u003e, \u003ccode\u003ealongZAxis\u003c/code\u003e) to determine if the reticle should be aligned with the corresponding camera axis after a recenter.\u003c/p\u003e\n"],["\u003cp\u003eIf an axis is aligned, its Euler angle is set to 0 relative to the camera; otherwise, it's determined by the relative look position.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eIsAnyAxisOff\u003c/code\u003e property indicates if any axis is not aligned (\u003ccode\u003etrue\u003c/code\u003e if none are aligned, \u003ccode\u003efalse\u003c/code\u003e otherwise).\u003c/p\u003e\n"],["\u003cp\u003eYou can initialize \u003ccode\u003eFaceCameraData\u003c/code\u003e with a \u003ccode\u003estartEnabled\u003c/code\u003e parameter, determining the initial state of axis alignment.\u003c/p\u003e\n"]]],["`FaceCameraData` manages camera-facing positioning, controlling recenters along Euler angle axes. It uses boolean attributes (`alongXAxis`, `alongYAxis`, `alongZAxis`) to specify if alignment should occur on each axis, setting the corresponding `eulerAngle` to 0 after recentering if `true`. The `IsAnyAxisOff` property determines if any axis is disabled. The struct is initialized with a `startEnabled` parameter, indicating if the axes begin as enabled.\n"],null,["GvrControllerReticleVisual.FaceCameraData\n\nCamera facing positioning data.\n\nSummary\n\nThese are parameters for restricting recenters along given euler angle axes.\n\n| Constructors and Destructors ||\n|---|---|\n| [FaceCameraData](#structGvrControllerReticleVisual_1_1FaceCameraData_1a973de17c75a97e435cbb5d8b18fb1c83)`(bool startEnabled)` Initializes a new instance of the [FaceCameraData](/vr/reference/unity/struct/GvrControllerReticleVisual/FaceCameraData#structGvrControllerReticleVisual_1_1FaceCameraData) struct. ||\n\n| Public attributes ||\n|------------------------------------------------------------------------------------------------------|-------------------------------------------|\n| [alongXAxis](#structGvrControllerReticleVisual_1_1FaceCameraData_1a7e39a3c152b37dcc88ce39deb96053b0) | `bool` Value `true` if aligned on X axis. |\n| [alongYAxis](#structGvrControllerReticleVisual_1_1FaceCameraData_1aff3acf65bc51006b551825f11e7cab90) | `bool` Value `true` if aligned on Y axis. |\n| [alongZAxis](#structGvrControllerReticleVisual_1_1FaceCameraData_1a994bffb9dfa3004ed312431db700cc98) | `bool` Value `true` if aligned on Z axis. |\n\n| Properties ||\n|--------------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| [IsAnyAxisOff](#structGvrControllerReticleVisual_1_1FaceCameraData_1ab278399732f12ed9d844ee0ff0ccc81a) | `bool` Gets a value indicating whether any axis is off. |\n\nPublic attributes \n\nalongXAxis \n\n```c#\nbool GvrControllerReticleVisual::FaceCameraData::alongXAxis\n``` \nValue `true` if aligned on X axis.\n\nIf `true`, the `eulerAngle.x` is set to 0 (relative to the designated Camera) after a recenter. Otherwise, `eulerAngle.x` is determined by relative look-positon from the Camera. \n\nalongYAxis \n\n```c#\nbool GvrControllerReticleVisual::FaceCameraData::alongYAxis\n``` \nValue `true` if aligned on Y axis.\n\nIf `true`, the `eulerAngle.y` is set to 0 (relative to the designated Camera) after a recenter. Otherwise, `eulerAngle.y` is determined by relative look-positon from the Camera. \n\nalongZAxis \n\n```c#\nbool GvrControllerReticleVisual::FaceCameraData::alongZAxis\n``` \nValue `true` if aligned on Z axis.\n\nIf `true`, the `eulerAngle.z` is set to 0 (relative to the designated Camera) after a recenter. Otherwise, `eulerAngle.z` is determined by relative look-positon from the Camera.\n\nProperties \n\nIsAnyAxisOff \n\n```c#\nbool GvrControllerReticleVisual::FaceCameraData::IsAnyAxisOff\n``` \nGets a value indicating whether any axis is off.\n\nValue `false` if along any axis, `true` otherwise.\n\nPublic functions \n\nFaceCameraData \n\n```c#\n GvrControllerReticleVisual::FaceCameraData::FaceCameraData(\n bool startEnabled\n)\n``` \nInitializes a new instance of the [FaceCameraData](/vr/reference/unity/struct/GvrControllerReticleVisual/FaceCameraData#structGvrControllerReticleVisual_1_1FaceCameraData) struct.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|----------------------------------------| | `startEnabled` | Whether the axes should start enabled. | |"]]