Class BaseMeshOutline
Abstract component to encapsulate common functionality around outline components.
Inheritance
BaseMeshOutline
Assembly: cs.temp.dll.dll
public abstract class BaseMeshOutline : MonoBehaviour, MonoBehaviour
Fields
Declaration
protected Material outlineMaterial
Field Value
Type |
Description |
Material |
|
Declaration
protected Material outlineMaterial
Field Value
Type |
Description |
Material |
|
Declaration
protected float outlineWidth
Field Value
Declaration
protected float outlineWidth
Field Value
Properties
The material used to render the outline. Outline materials should normal have "Depth Write" set to Off and "Vertex Extrusion" enabled.
Most MRTK/Standard features should work as an outline material, but it is recommended to keep the outline material as simple as possible.
Declaration
public Material OutlineMaterial { get; set; }
Property Value
Type |
Description |
Material |
|
The material used to render the outline. Outline materials should normal have "Depth Write" set to Off and "Vertex Extrusion" enabled.
Most MRTK/Standard features should work as an outline material, but it is recommended to keep the outline material as simple as possible.
Declaration
public Material OutlineMaterial { get; set; }
Property Value
Type |
Description |
Material |
|
How thick (in meters) should the outline be. Overrides the "Extrusion Value" in the MRTK/Standard material.
Declaration
public float OutlineWidth { get; set; }
Property Value
How thick (in meters) should the outline be. Overrides the "Extrusion Value" in the MRTK/Standard material.
Declaration
public float OutlineWidth { get; set; }
Property Value
Methods
Declaration
protected abstract void ApplyOutlineMaterial()
Declaration
protected abstract void ApplyOutlineMaterial()
Declaration
protected abstract void ApplyOutlineWidth()
Declaration
protected abstract void ApplyOutlineWidth()
Enables users to modify inspector properties while playing in the editor.
Declaration
protected virtual void OnValidate()
Enables users to modify inspector properties while playing in the editor.
Declaration
protected virtual void OnValidate()
Implements
MonoBehaviour