mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    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
    Implements
    MonoBehaviour
    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, MonoBehaviour

    Methods

    ApplyOutlineMaterial()

    Prepares and applies the current outline material to the renderer.

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

    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()

    ApplyOutlineWidth()

    Updates the current vertex extrusion value used by the shader.

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

    Implements

    MonoBehaviour
    In This Article
    • Methods
      • ApplyOutlineMaterial()
      • ApplyOutlineMaterial()
      • ApplyOutlineWidth()
      • ApplyOutlineWidth()
    • Implements
    Back to top Generated by DocFX