Show / Hide Table of Contents

Class Screen

vCast Screen Node for projecting images.
vCast 屏幕節點用於投射影像。

Inheritance
System.Object
Element
Node
Screen
Inherited Members
Node.parent
Node.gameObject
Node.transform
Node.defaultPosition
Node.defaultEulerAngles
Node.SetParent(Transform)
Node.SetParent(String)
Element.name
Element.Equals(String, Boolean)
Element.Contains(String, Boolean, Boolean)
Namespace: Votanic.vXR.vCast.Core
Assembly: Votanic.vXR.dll
Syntax
public class Screen : Node

Properties

enableWarning

Show screen warning if true.
當 true 時顯示屏幕警告。

Declaration
public bool enableWarning { get; }
Property Value
Type Description
System.Boolean

height

Height of screen.
屏幕高度。

Declaration
public float height { get; }
Property Value
Type Description
System.Single

vertical

Return true if the screen is vertical.
當屏幕為垂直時傳回 true。

Declaration
public bool vertical { get; }
Property Value
Type Description
System.Boolean

warningDistance

Maximum distance to show screen warning.
顯示屏幕警告的最大距離。

Declaration
public float warningDistance { get; }
Property Value
Type Description
System.Single

width

Width of screen.
屏幕闊度。

Declaration
public float width { get; }
Property Value
Type Description
System.Single

Methods

DisplayScreen(Boolean)

Show or hide the screen.
顯示或隱藏屏幕。

DisplayScreen(true)

Declaration
public void DisplayScreen(bool display)
Parameters
Type Name Description
System.Boolean display

Display if true
當 true 時顯示

EnableWarning(Boolean, Single)

Enable or disable the too close screen warning.
啟用或停用太接近屏幕警告。

EnableWarning(true)

Declaration
public void EnableWarning(bool enable, float distance = 0.6F)
Parameters
Type Name Description
System.Boolean enable

Enable if true
當 true 時啟用

System.Single distance

Maximum distance to show warning
顯示警告的最遠距離

MountScreen(Transform, Boolean)

Paste an object to the screen.
將物件貼上屏幕。

MountScreen(transform, false)

Declaration
public void MountScreen(Transform mountOjbect, bool parent = false)
Parameters
Type Name Description
UnityEngine.Transform mountOjbect

Target object
目標物件

System.Boolean parent

Parent to screen if true
當 true 時將屏幕設為母體

MountScreen(Transform, Vector3, Vector3, Boolean)

Paste an object to the screen.
將物件貼上屏幕。

MountScreen(transform, Vector3.zero, Vector3.zero)

Declaration
public void MountScreen(Transform mountObject, Vector3 position, Vector3 eulerAngles, bool parent = false)
Parameters
Type Name Description
UnityEngine.Transform mountObject

Target object
目標物件

UnityEngine.Vector3 position

Relative position of screen
在屏幕的相對位置

UnityEngine.Vector3 eulerAngles

Relative position of euler angles
在屏幕的相對角度

System.Boolean parent

Parent to screen if true
當 true 時將屏幕設為母體

In This Article
Back to top Generated by DocFX