We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class BaseMeshOutline

    Abstract component to encapsulate common functionality around outline components.

    Inheritance
    Object
    BaseMeshOutline
    MeshOutline
    MeshOutlineHierarchy
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class BaseMeshOutline : MonoBehaviour

    Fields

    outlineMaterial

    Declaration
    protected Material outlineMaterial
    Field Value
    Type Description
    Material

    outlineWidth

    Declaration
    protected float outlineWidth
    Field Value
    Type Description
    Single

    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.

    Declaration
    public Material OutlineMaterial { get; set; }
    Property Value
    Type Description
    Material

    OutlineWidth

    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
    Type Description
    Single

    Methods

    ApplyOutlineMaterial()

    Declaration
    protected abstract void ApplyOutlineMaterial()

    ApplyOutlineWidth()

    Declaration
    protected abstract void ApplyOutlineWidth()

    OnValidate()

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

    Declaration
    protected virtual void OnValidate()
    In This Article
    Back to top Generated by DocFX