BaseMeshOutline Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Abstract component to encapsulate common functionality around outline components.
public ref class BaseMeshOutline abstract : UnityEngine::MonoBehaviour
[UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/rendering/mrtk-standard-shader#mesh-outlines")]
public abstract class BaseMeshOutline : UnityEngine.MonoBehaviour
[<UnityEngine.HelpURL("https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/rendering/mrtk-standard-shader#mesh-outlines")>]
type BaseMeshOutline = class
inherit MonoBehaviour
Public MustInherit Class BaseMeshOutline
Inherits MonoBehaviour
- Inheritance
-
UnityEngine.MonoBehaviourBaseMeshOutline
- Derived
- Attributes
-
UnityEngine.HelpURLAttribute
Constructors
BaseMeshOutline() |
Fields
outlineMaterial | |
outlineWidth |
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. |