Class BaseMixedRealityLineRenderer
Base class for Mixed Reality Line Renderers.
Inheritance
BaseMixedRealityLineRenderer
Assembly: cs.temp.dll.dll
public abstract class BaseMixedRealityLineRenderer : MonoBehaviour, MonoBehaviour
Fields
Declaration
protected BaseMixedRealityLineDataProvider lineDataSource
Field Value
Declaration
protected BaseMixedRealityLineDataProvider lineDataSource
Field Value
Properties
Normalized offset for color gradient
Declaration
public float ColorOffset { get; set; }
Property Value
Normalized offset for color gradient
Declaration
public float ColorOffset { get; set; }
Property Value
Color gradient applied to line's normalized length
Declaration
public Gradient LineColor { get; set; }
Property Value
Type |
Description |
Gradient |
|
Color gradient applied to line's normalized length
Declaration
public Gradient LineColor { get; set; }
Property Value
Type |
Description |
Gradient |
|
The data provider component that provides the positioning source information for the LineRenderer.
Declaration
public BaseMixedRealityLineDataProvider LineDataSource { get; set; }
Property Value
The data provider component that provides the positioning source information for the LineRenderer.
Declaration
public BaseMixedRealityLineDataProvider LineDataSource { get; set; }
Property Value
Number of steps to interpolate along line in Interpolated step mode
Declaration
public int LineStepCount { get; set; }
Property Value
Number of steps to interpolate along line in Interpolated step mode
Declaration
public int LineStepCount { get; set; }
Property Value
Declaration
public AnimationCurve LineWidth { get; set; }
Property Value
Type |
Description |
AnimationCurve |
|
Declaration
public AnimationCurve LineWidth { get; set; }
Property Value
Type |
Description |
AnimationCurve |
|
Method for distributing rendered points along line.
Declaration
public PointDistributionMode PointDistributionMode { get; set; }
Property Value
Method for distributing rendered points along line.
Declaration
public PointDistributionMode PointDistributionMode { get; set; }
Property Value
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.)
Declaration
public StepMode StepMode { get; set; }
Property Value
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.)
Declaration
public StepMode StepMode { get; set; }
Property Value
Declaration
public float WidthMultiplier { get; set; }
Property Value
Declaration
public float WidthMultiplier { get; set; }
Property Value
Normalized offset for width curve
Declaration
public float WidthOffset { get; set; }
Property Value
Normalized offset for width curve
Declaration
public float WidthOffset { get; set; }
Property Value
Methods
Get the Color along the normalized length of the line.
Declaration
protected virtual Color GetColor(float normalizedLength)
Parameters
Type |
Name |
Description |
Single |
normalizedLength |
|
Returns
Get the Color along the normalized length of the line.
Declaration
protected virtual Color GetColor(float normalizedLength)
Parameters
Type |
Name |
Description |
Single |
normalizedLength |
|
Returns
Gets the normalized distance along the line path (range 0 to 1) going the given number of steps provided
Declaration
protected virtual float GetNormalizedPointAlongLine(int stepNum)
Parameters
Type |
Name |
Description |
Int32 |
stepNum |
Number of steps to take "walking" along the curve
|
Returns
Gets the normalized distance along the line path (range 0 to 1) going the given number of steps provided
Declaration
protected virtual float GetNormalizedPointAlongLine(int stepNum)
Parameters
Type |
Name |
Description |
Int32 |
stepNum |
Number of steps to take "walking" along the curve
|
Returns
Get the width of the line along the normalized length of the line.
Declaration
protected virtual float GetWidth(float normalizedLength)
Parameters
Type |
Name |
Description |
Single |
normalizedLength |
|
Returns
Get the width of the line along the normalized length of the line.
Declaration
protected virtual float GetWidth(float normalizedLength)
Parameters
Type |
Name |
Description |
Single |
normalizedLength |
|
Returns
Executes every Unity LateUpdate(). Any property updates or frame updates should occur here to update the line data source.
Declaration
protected abstract void UpdateLine()
Executes every Unity LateUpdate(). Any property updates or frame updates should occur here to update the line data source.
Declaration
protected abstract void UpdateLine()
Implements
MonoBehaviour