日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    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()
    Back to top Generated by DocFX