Class BaseMixedRealityLineRenderer
Base class for Mixed Reality Line Renderers.
Inheritance
BaseMixedRealityLineRenderer
Assembly: cs.temp.dll.dll
public abstract class BaseMixedRealityLineRenderer : MonoBehaviour
Fields
Declaration
protected BaseMixedRealityLineDataProvider lineDataSource
Field Value
Properties
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 |
|
The line data this component will render
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
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 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
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
Declaration
protected virtual float GetNormalizedPointAlongLine(int stepNum)
Parameters
Type |
Name |
Description |
Int32 |
stepNum |
|
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
Declaration
protected abstract void UpdateLine()