Class Screen
vCast Screen Node for projecting images.
vCast 屏幕節點用於投射影像。
Inherited Members
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 |
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 |
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 |
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 |