Szerkesztés

Megosztás a következőn keresztül:


BaseMeshOutline Class

Definition

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.MonoBehaviour
BaseMeshOutline
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.

Applies to