Editar

Partilhar via


BaseMixedRealityLineRenderer Class

Definition

Base class for Mixed Reality Line Renderers.

public ref class BaseMixedRealityLineRenderer abstract : UnityEngine::MonoBehaviour
[UnityEngine.ExecuteAlways]
public abstract class BaseMixedRealityLineRenderer : UnityEngine.MonoBehaviour
[<UnityEngine.ExecuteAlways>]
type BaseMixedRealityLineRenderer = class
    inherit MonoBehaviour
Public MustInherit Class BaseMixedRealityLineRenderer
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
BaseMixedRealityLineRenderer
Derived
Attributes
UnityEngine.ExecuteAlwaysAttribute

Constructors

BaseMixedRealityLineRenderer()

Fields

lineDataSource

Properties

ColorOffset

Normalized offset for color gradient

LineColor

Color gradient applied to line's normalized length

LineDataSource

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

LineStepCount

Number of steps to interpolate along line in Interpolated step mode

LineWidth
PointDistributionMode

Method for distributing rendered points along line.

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

WidthMultiplier
WidthOffset

Normalized offset for width curve

Methods

GetColor(Single)

Get the Color along the normalized length of the line.

GetNormalizedPointAlongLine(Int32)

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

GetWidth(Single)

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

OnDrawGizmos()
UpdateLine()

Executes every Unity LateUpdate(). Any property updates or frame updates should occur here to update the line data source.

Applies to