Olvasás angol nyelven Szerkesztés

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


MixedRealityLineRenderer Class

Definition

Implements Unity's built in line renderer component, and applies the line data to it.

C++
public ref class MixedRealityLineRenderer : Microsoft::MixedReality::Toolkit::Utilities::BaseMixedRealityLineRenderer
Inheritance
UnityEngine.MonoBehaviour
MixedRealityLineRenderer
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.RequireComponentAttribute

Constructors

Fields

Properties

ColorOffset

Normalized offset for color gradient

(Inherited from BaseMixedRealityLineRenderer)
FadeLineAnimationTime

The amount the pointer line will fade if fadeLineBrightnessOnEnable is true"

FadeLineBrightnessOnEnable

Sets whether the ray line will animate to a lower brightness level on enable of this component

FadeLinePercentage

The amount the pointer line will fade if FadeLineBrightnessOnEnable is true"

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

Gets the LineRenderer points

RoundedCaps
RoundedEdges
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)
UpdateLine()

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

Applies to

Termék Verziók
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0