API reference
API reference
Select your platform
No SDKs available
No versions available

TurnArrowVisuals Class

Extends MonoBehaviour
This visuals component renders one curved arrow to the left, and another one to the right.
Using the Visual parameters one can control the angle, spacing, curvature, thickness of the arrows. Using the controllers one can highlight one or the other arrow, make them grow or move along their trail.

Fields

float Radius[Get]
float Margin[Get]
float TrailLength[Get]
float MaxAngle[Get]
float RailGap[Get]
float SqueezeLength[Get]

Properties

Color DisabledColor[Get]
Color EnabledColor[Get]
Color HighligtedColor[Get]
bool HighLight[Get]
float Value[Get]
float Progress[Get]
bool FollowArrow[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Start ( )
virtual void OnDisable ( )

Member Functions

Disables all the visual renderers
Updates the Arrows and Colors with the provided Values.
It also re-enables the renderers so they are instantly drawn.
void InjectAllTurnArrowVisuals
( Renderer leftArrow,
Renderer rightArrow,
TubeRenderer leftRail,
TubeRenderer rightRail,
TubeRenderer leftTrail,
TubeRenderer rightTrail,
MaterialPropertyBlockEditor leftMaterialBlock,
MaterialPropertyBlockEditor rightMaterialBlock,
float radius,
float margin,
float trailLength,
float maxAngle,
float railGap,
float squeezeLength )
void InjectLeftArrow
( Renderer leftArrow )
void InjectRightArrow
( Renderer rightArrow )
void InjectLeftRail
( TubeRenderer leftRail )
void InjectRightRail
( TubeRenderer rightRail )
void InjectLeftTrail
( TubeRenderer leftTrail )
void InjectRightTrail
( TubeRenderer rightTrail )
void InjectLeftMaterialBlock
( MaterialPropertyBlockEditor leftMaterialBlock )
void InjectRightMaterialBlock
( MaterialPropertyBlockEditor rightMaterialBlock )
void InjectRadius
( float radius )
void InjectMargin
( float margin )
void InjectTrailLength
( float trailLength )
void InjectMaxAngle
( float maxAngle )
void InjectRailGap
( float railGap )
void InjectSqueezeLength
( float squeezeLength )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon