Modifica

Condividi tramite


MeshOutlineHierarchy Class

Definition

Component which can be used to render an outline around a hierarchy of mesh renderers using the MeshOutline component.

public ref class MeshOutlineHierarchy : Microsoft::MixedReality::Toolkit::Utilities::BaseMeshOutline
[UnityEngine.AddComponentMenu("Scripts/MRTK/Core/MeshOutlineHierarchy")]
public class MeshOutlineHierarchy : Microsoft.MixedReality.Toolkit.Utilities.BaseMeshOutline
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Core/MeshOutlineHierarchy")>]
type MeshOutlineHierarchy = class
    inherit BaseMeshOutline
Public Class MeshOutlineHierarchy
Inherits BaseMeshOutline
Inheritance
UnityEngine.MonoBehaviour
MeshOutlineHierarchy
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

MeshOutlineHierarchy()

Fields

outlineMaterial (Inherited from BaseMeshOutline)
outlineWidth (Inherited from BaseMeshOutline)

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.

(Inherited from BaseMeshOutline)
OutlineWidth

How thick (in meters) should the outline be. Overrides the "Extrusion Value" in the MRTK/Standard material.

(Inherited from BaseMeshOutline)

Methods

ApplyOutlineMaterial()

Forwards the outlineMaterial to all children MeshOutlines.

ApplyOutlineWidth()

Forwards the outlineWidth to all children MeshOutlines.

OnValidate()

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

(Inherited from BaseMeshOutline)

Applies to