Class vCast_Outliner
Outliner component for displaying outline effect. 顯示輪廓效果的輪廓組件。
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vCast_Outliner
Namespace: Votanic.vXR.vCast
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vCast_Outliner : MonoBehaviour
Fields
fill
Outline fill material.
輪廓填滿材質。
Declaration
[Header("[Components]")]
[Tooltip("Outline fill material.\n輪廓填滿材質。")]
public Material fill
Field Value
Type | Description |
---|---|
UnityEngine.Material |
isDisabled
Return true if diabled outline.
當停用輪廓時傳回 true。
Declaration
[Header("[Status]")]
[Tooltip("Return true if diabled outline.\n當停用輪廓時傳回 true。")]
public bool isDisabled
Field Value
Type | Description |
---|---|
System.Boolean |
mask
Outline mask material.
輪廓遮蔽材質。
Declaration
[Tooltip("Outline mask material.\n輪廓遮蔽材質。")]
public Material mask
Field Value
Type | Description |
---|---|
UnityEngine.Material |
outlineColor
Outline color.
輪廓顏色。
Declaration
[Header("[Settings]")]
[Tooltip("Outline color.\n輪廓顏色")]
public Color outlineColor
Field Value
Type | Description |
---|---|
UnityEngine.Color |
outlineMode
Outline mode.
輪廓展示模式。
Declaration
[Tooltip("Outline mode.\n輪廓展示模式。")]
public OutlineMode outlineMode
Field Value
Type | Description |
---|---|
OutlineMode |
outlineWidth
Outline width.
輪廓闊度。
Declaration
[Range(0F, 20F)]
[Tooltip("Outline width.\n輪廓闊度。")]
public float outlineWidth
Field Value
Type | Description |
---|---|
System.Single |
Methods
Enable(Boolean)
Enable or disable outline.
啟用或停用輪廓。
Enable()
Declaration
public void Enable(bool enable = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | enable | Enable if true |
SetOutline(Color, Single)
Set outline color and width.
設定輪廓顏色及闊度。
SetOutline(Color.white, 10)
Declaration
public void SetOutline(Color color, float width)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Color | color | Target color |
System.Single | width | Target width |