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 MeshOutline

    Component which can be used to render an outline around a mesh renderer. Enabling this component introduces an additional render pass of the object being outlined, but is designed to run performantly on mobile Mixed Reality devices and does not utilize any post processes. This behavior is designed to be used in conjunction with the MRTK/Standard shader. Limitations of this effect include it not working well on objects which are not watertight (or required to be two sided) and depth sorting issues can occur on overlapping objects.

    Inheritance
    Object
    BaseMeshOutline
    MeshOutline
    Inherited Members
    BaseMeshOutline.OutlineMaterial
    BaseMeshOutline.outlineMaterial
    BaseMeshOutline.OutlineWidth
    BaseMeshOutline.outlineWidth
    BaseMeshOutline.OnValidate()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public class MeshOutline : BaseMeshOutline

    Methods

    ApplyOutlineMaterial()

    Prepares and applies the current outline material to the renderer.

    Declaration
    protected override void ApplyOutlineMaterial()
    Overrides
    BaseMeshOutline.ApplyOutlineMaterial()

    ApplyOutlineWidth()

    Updates the current vertex extrusion value used by the shader.

    Declaration
    protected override void ApplyOutlineWidth()
    Overrides
    BaseMeshOutline.ApplyOutlineWidth()
    In This Article
    Back to top Generated by DocFX