Show / Hide Table of Contents

Class vGear_Magnifier

Magnifier tool of vGear controller.
vGear 控制器的放大鏡工具。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vCast_Device
vCast_ControllerTool
vGear_Magnifier
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Magnifier : vCast_ControllerTool

Fields

cameraAngle

Angle of magnifier lens.
放大鏡角度。

Declaration
[Header("[Settings]")]
[Range(5F, 60F)]
[Tooltip("Angle of magnifier lens.\n放大鏡角度。")]
public float cameraAngle
Field Value
Type Description
System.Single

cameras

The cameras component of magnifier tool.
放大鏡工具的相機組件。

Declaration
[Header("[Components]")]
[Tooltip("The cameras component of magnifier tool.\n放大鏡工具的相機組件。")]
public Camera[] cameras
Field Value
Type Description
UnityEngine.Camera[]

isRealTime

Return true if the magnifier tool rendering is real time.
當放大鏡實時渲染時傳回 true。

Declaration
[Tooltip("Return true if the magnifier tool rendering is real time.\n當放大鏡實時渲染時傳回 true。")]
public bool isRealTime
Field Value
Type Description
System.Boolean

isShowing

Return true if the magnifier tool is showing.
當放大鏡工具顯示時傳回 true。

Declaration
[Tooltip("Return true if the magnifier tool is showing.\n當放大鏡工具顯示時傳回 true。")]
public bool isShowing
Field Value
Type Description
System.Boolean

textureSize

Size of texture on magnifier planes.
放大鏡工具平面的紋理大小。

Declaration
[Tooltip("Size of texture on magnifier planes.\n放大鏡工具平面的紋理大小。")]
public Vector2Int textureSize
Field Value
Type Description
UnityEngine.Vector2Int

views

The mesh renderer component of magnifier tool.
放大鏡工具的渲染器組件。

Declaration
[Tooltip("The renderer component of magnifier tool.\n放大鏡工具的渲染器組件。")]
public Renderer[] views
Field Value
Type Description
UnityEngine.Renderer[]

zoom

Zoom value of magnifier tool.
放大鏡工具變焦值。

Declaration
[Header("[Status]")]
[Tooltip("Zoom value of magnifier tool.\n放大鏡工具變焦值。")]
public float zoom
Field Value
Type Description
System.Single

zoomSpeed

Zooming speed of the camera.
變焦速度。

Declaration
[Tooltip("Zooming speed of the camera.\n變焦速度。")]
public float zoomSpeed
Field Value
Type Description
System.Single

Methods

Mount(Transform, Boolean, Boolean)

Mount the magnifier tool to target transform.
將放大鏡工具依附在目標 Transform。

Mount(transform, true, true)

Declaration
public void Mount(Transform target, bool show = true, bool realTime = true)
Parameters
Type Name Description
UnityEngine.Transform target

Target transform
目標 Transform

System.Boolean show

Show if true
當 true 時顯示

System.Boolean realTime

Turn on view finder if true
當 true 時打開取景器

Mount(Vector3, Vector3, Boolean, Boolean)

Mount the magnifier tool to target posiiton and euler angles.
將放大鏡工具依附在目標位置及角度。

Mount(Vector3.zero, Vector3.zero, true, true)

Declaration
public void Mount(Vector3 position, Vector3 eulerAngles, bool show = true, bool realTime = true)
Parameters
Type Name Description
UnityEngine.Vector3 position

Target position
目標位置

UnityEngine.Vector3 eulerAngles

Target euler angles
目標角度

System.Boolean show

Show if true
當 true 時顯示

System.Boolean realTime

Turn on view finder if true
當 true 時打開取景器

Show(Boolean, Boolean)

Show or hide magnifier tool.
顯示或隱藏放大鏡工具。

Show(true, true)

Declaration
public void Show(bool show = true, bool realTime = true)
Parameters
Type Name Description
System.Boolean show

Show if true
當 true 時顯示

System.Boolean realTime

Turn on view finder if true
當 true 時打開取景器

In This Article
  • Fields
    • cameraAngle
    • cameras
    • isRealTime
    • isShowing
    • textureSize
    • views
    • zoom
    • zoomSpeed
  • Methods
    • Mount(Transform, Boolean, Boolean)
    • Mount(Vector3, Vector3, Boolean, Boolean)
    • Show(Boolean, Boolean)
Back to top Generated by DocFX