Modifier

Partager via


MeshLineRenderer Class

Definition

Creates instances of a mesh along the line

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

Constructors

MeshLineRenderer()

Fields

lineDataSource (Inherited from BaseMixedRealityLineRenderer)

Properties

ColorOffset

Normalized offset for color gradient

(Inherited from BaseMixedRealityLineRenderer)
ColorProperty
LineColor

Color gradient applied to line's normalized length

(Inherited from BaseMixedRealityLineRenderer)
LineDataSource

The data provider component that provides the positioning source information for the LineRenderer.

(Inherited from BaseMixedRealityLineRenderer)
LineMaterial
LineMesh
LineStepCount

Number of steps to interpolate along line in Interpolated step mode

(Inherited from BaseMixedRealityLineRenderer)
LineWidth (Inherited from BaseMixedRealityLineRenderer)
PointDistributionMode

Method for distributing rendered points along line.

(Inherited from BaseMixedRealityLineRenderer)
StepMode

Method for gathering points along line. Interpolated uses normalized length. FromSource uses line's base points. (FromSource may not look right for all LineDataProvider types.)

(Inherited from BaseMixedRealityLineRenderer)
WidthMultiplier (Inherited from BaseMixedRealityLineRenderer)
WidthOffset

Normalized offset for width curve

(Inherited from BaseMixedRealityLineRenderer)

Methods

GetColor(Single)

Get the Color along the normalized length of the line.

(Inherited from BaseMixedRealityLineRenderer)
GetNormalizedPointAlongLine(Int32)

Gets the normalized distance along the line path (range 0 to 1) going the given number of steps provided

(Inherited from BaseMixedRealityLineRenderer)
GetWidth(Single)

Get the width of the line along the normalized length of the line.

(Inherited from BaseMixedRealityLineRenderer)
OnDrawGizmos() (Inherited from BaseMixedRealityLineRenderer)
OnEnable()
UpdateLine()

Applies to