Class SensorPart
vCast sensor device parts setting.
vCast 感應器裝置的組件設定。
Inherited Members
Namespace: Votanic.vXR.vCast.IO
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public class SensorPart : Element
Constructors
SensorPart(String, Boolean, Vector3, Vector3)
Declare the sensor part.
宣告感應器組件。
Declaration
public SensorPart(string name, bool enable, Vector3 position, Vector3 rotation)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Sensor part name |
System.Boolean | enable | Enable if true |
UnityEngine.Vector3 | position | Relative position on sensor |
UnityEngine.Vector3 | rotation | Relative euler angles on sensor |
Fields
enable
Enable sensor part if true.
當 true 時啟用感應器組件。
Declaration
[Tooltip("Enable sensor part.\n啟用感應器組件。")]
public bool enable
Field Value
Type | Description |
---|---|
System.Boolean |
position
Relative position on sensor.
在感應器的相對位置。
Declaration
[Tooltip("Relative position on sensor.\n在感應器的相對位置。")]
public Vector3 position
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |
rotation
Relative euler angles on sensor.
在感應器的相對角度。
Declaration
[Tooltip("Relative euler angles on sensor.\n在感應器的相對角度。")]
public Vector3 rotation
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |