Class vGear_Brush
Brush tool of vGear controller.
vGear 控制器的畫筆工具。
Inheritance
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_Brush : vCast_ControllerTool
Fields
colliderType
Locus collider setting.
筆跡碰撞器設定。
Declaration
[Tooltip("Locus collider setting.\n筆跡碰撞器設定。")]
public LocusCollider colliderType
Field Value
Type | Description |
---|---|
LocusCollider |
color
Current brush color.
目前畫筆顏色。
Declaration
[Header("[Settings]")]
[Tooltip("Current brush color.\n目前畫筆顏色。")]
public Color color
Field Value
Type | Description |
---|---|
UnityEngine.Color |
destroyLocusScript
Destroy locus script after drawing.
完成繪畫後移除畫筆腳本。
Declaration
[Tooltip("Destroy locus script after drawing.\n完成繪畫後移除畫筆腳本。")]
public bool destroyLocusScript
Field Value
Type | Description |
---|---|
System.Boolean |
handheld
Draw locus on handheld or projected mode.
以手持或投射方式繪畫。
Declaration
[Tooltip("Draw locus on handheld or projected mode.\n以手持或投射方式繪畫。")]
public bool handheld
Field Value
Type | Description |
---|---|
System.Boolean |
isDrawing
Return true if drawing.
當正在繪畫時傳回 true。
Declaration
[Header("[Status]")]
[Tooltip("Return true if drawing.\n當正在繪畫時傳回 true。")]
public bool isDrawing
Field Value
Type | Description |
---|---|
System.Boolean |
isKinematic
Set the locus object rigidbody is kinematic or not.
筆跡剛體是否運動學的。
Declaration
[Tooltip("Set the locus object rigidbody is kinematic or not.\n筆跡剛體是否運動學的。")]
public bool isKinematic
Field Value
Type | Description |
---|---|
System.Boolean |
lightProbe
The locus object light probe setting.
筆跡光探測設定。
Declaration
[Tooltip("The locus object light probe setting.\n筆跡光探測設定。")]
public LightProbeUsage lightProbe
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.LightProbeUsage |
locusPrefab
Locus object prefab.
筆跡預製件。
Declaration
[Tooltip("Locus object prefab.\n筆跡預製件。")]
public vGear_Locus locusPrefab
Field Value
Type | Description |
---|---|
Votanic.vXR.vGear.vGear_Locus |
locusType
Locus interaction type.
筆跡互動類型。
Declaration
[Header("[Locus]")]
[Tooltip("Locus interaction type.\n筆跡互動類型。")]
public LocusType locusType
Field Value
Type | Description |
---|---|
LocusType |
material
Material of brush.
畫筆材質。
Declaration
[Header("[Components]")]
[Tooltip("Material of brush.\n畫筆材質。")]
public Material material
Field Value
Type | Description |
---|---|
UnityEngine.Material |
minDistance
Minimum distance to draw locus from point to point.
畫筆繪畫的兩點最短距離。
Declaration
[Tooltip("Minimum distance to draw locus from point to point.\n畫筆繪畫的兩點最短距離。")]
public float minDistance
Field Value
Type | Description |
---|---|
System.Single |
opacity
Current bursh opacity.
目前畫筆透明度。
Declaration
[Tooltip("Current bursh opacity.\n目前畫筆透明度。")]
public int opacity
Field Value
Type | Description |
---|---|
System.Int32 |
receiveShadows
Set the locus object can receive shadows or not.
筆跡剛體是否吸收陰影。
Declaration
[Tooltip("Set the locus object can receive shadows or not.\n筆跡剛體是否吸收陰影。")]
public bool receiveShadows
Field Value
Type | Description |
---|---|
System.Boolean |
reflectionProbe
The locus object reflection probe setting.
筆跡反射探測設定。
Declaration
[Tooltip("The locus object reflection probe setting.\n筆跡反射探測設定。")]
public ReflectionProbeUsage reflectionProbe
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ReflectionProbeUsage |
shadow
The locus object shadow setting.
筆跡陰影設定。
Declaration
[Tooltip("The locus object shadow setting.\n筆跡陰影設定。")]
public ShadowCastingMode shadow
Field Value
Type | Description |
---|---|
UnityEngine.Rendering.ShadowCastingMode |
side
Current bursh locus polygon side.
目前畫筆筆跡多邊形邊數。
Declaration
[Tooltip("Current bursh locus polygon side.\n目前畫筆筆跡多邊形邊數。")]
public int side
Field Value
Type | Description |
---|---|
System.Int32 |
thickness
Current bursh thickness.
目前畫筆粗度。
Declaration
[Tooltip("Current bursh thickness.\n目前畫筆粗度。")]
public int thickness
Field Value
Type | Description |
---|---|
System.Int32 |
useGravity
Apply gravity to locus object rigidbody or not.
筆跡剛體是否應用重力。
Declaration
[Tooltip("Apply gravity to locus object rigidbody or not.\n筆跡剛體是否應用重力。")]
public bool useGravity
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
drawn
Number of drawn locuses.
已繪畫的筆跡數目。
Declaration
public int drawn { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clear()
Clear all locus of this brush tool.
清除這個畫筆工具的所有筆跡。
Declaration
public void Clear()
Remove(Int32)
Remove a locus of this brush tool.
移除這個畫筆工具的一個筆跡。
Remove(0)
Declaration
public void Remove(int locus)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | locus | Locus index |