BaseMeshOutline Class

Definition

Abstract component to encapsulate common functionality around outline components.

C++
public ref class BaseMeshOutline abstract : UnityEngine::MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
BaseMeshOutline
Derived
Attributes
UnityEngine.HelpURLAttribute

Constructors

Fields

Properties

OutlineMaterial

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.

OutlineWidth

How thick (in meters) should the outline be. Overrides the "Extrusion Value" in the MRTK/Standard material.

Methods

ApplyOutlineMaterial()
ApplyOutlineWidth()
OnValidate()

Enables users to modify inspector properties while playing in the editor.

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0