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.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Locomotion.TurnArrowVisuals._started

Fields

Margin : float
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.Margin
MaxAngle : float
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.MaxAngle
Radius : float
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.Radius
RailGap : float
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.RailGap
SqueezeLength : float
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.SqueezeLength
TrailLength : float
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.TrailLength

Properties

DisabledColor : Color
[Get][Set]
Signature
Color Oculus.Interaction.Locomotion.TurnArrowVisuals.DisabledColor
EnabledColor : Color
[Get][Set]
Signature
Color Oculus.Interaction.Locomotion.TurnArrowVisuals.EnabledColor
FollowArrow : bool
[Get][Set]
Signature
bool Oculus.Interaction.Locomotion.TurnArrowVisuals.FollowArrow
HighLight : bool
[Get][Set]
Signature
bool Oculus.Interaction.Locomotion.TurnArrowVisuals.HighLight
HighligtedColor : Color
[Get][Set]
Signature
Color Oculus.Interaction.Locomotion.TurnArrowVisuals.HighligtedColor
Progress : float
[Get][Set]
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.Progress
Value : float
[Get][Set]
Signature
float Oculus.Interaction.Locomotion.TurnArrowVisuals.Value

Protected Methods

OnDisable ()
Signature
virtual void Oculus.Interaction.Locomotion.TurnArrowVisuals.OnDisable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Locomotion.TurnArrowVisuals.Start()
Returns
void

Methods

DisableVisuals ()
Disables all the visual renderers
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.DisableVisuals()
Returns
void
InjectAllTurnArrowVisuals ( leftArrow , rightArrow , leftRail , rightRail , leftTrail , rightTrail , leftMaterialBlock , rightMaterialBlock , radius , margin , trailLength , maxAngle , railGap , squeezeLength )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.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)
Parameters
leftArrow: Renderer
rightArrow: Renderer
leftRail: TubeRenderer
rightRail: TubeRenderer
leftTrail: TubeRenderer
rightTrail: TubeRenderer
leftMaterialBlock: MaterialPropertyBlockEditor
rightMaterialBlock: MaterialPropertyBlockEditor
radius: float
margin: float
trailLength: float
maxAngle: float
railGap: float
squeezeLength: float
Returns
void
InjectLeftArrow ( leftArrow )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectLeftArrow(Renderer leftArrow)
Parameters
leftArrow: Renderer
Returns
void
InjectLeftMaterialBlock ( leftMaterialBlock )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectLeftMaterialBlock(MaterialPropertyBlockEditor leftMaterialBlock)
Parameters
leftMaterialBlock: MaterialPropertyBlockEditor
Returns
void
InjectLeftRail ( leftRail )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectLeftRail(TubeRenderer leftRail)
Parameters
leftRail: TubeRenderer
Returns
void
InjectLeftTrail ( leftTrail )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectLeftTrail(TubeRenderer leftTrail)
Parameters
leftTrail: TubeRenderer
Returns
void
InjectMargin ( margin )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectMargin(float margin)
Parameters
margin: float
Returns
void
InjectMaxAngle ( maxAngle )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectMaxAngle(float maxAngle)
Parameters
maxAngle: float
Returns
void
InjectRadius ( radius )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectRadius(float radius)
Parameters
radius: float
Returns
void
InjectRailGap ( railGap )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectRailGap(float railGap)
Parameters
railGap: float
Returns
void
InjectRightArrow ( rightArrow )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectRightArrow(Renderer rightArrow)
Parameters
rightArrow: Renderer
Returns
void
InjectRightMaterialBlock ( rightMaterialBlock )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectRightMaterialBlock(MaterialPropertyBlockEditor rightMaterialBlock)
Parameters
rightMaterialBlock: MaterialPropertyBlockEditor
Returns
void
InjectRightRail ( rightRail )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectRightRail(TubeRenderer rightRail)
Parameters
rightRail: TubeRenderer
Returns
void
InjectRightTrail ( rightTrail )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectRightTrail(TubeRenderer rightTrail)
Parameters
rightTrail: TubeRenderer
Returns
void
InjectSqueezeLength ( squeezeLength )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectSqueezeLength(float squeezeLength)
Parameters
squeezeLength: float
Returns
void
InjectTrailLength ( trailLength )
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.InjectTrailLength(float trailLength)
Parameters
trailLength: float
Returns
void
UpdateVisual ()
Updates the Arrows and Colors with the provided Values.
It also re-enables the renderers so they are instantly drawn.
Signature
void Oculus.Interaction.Locomotion.TurnArrowVisuals.UpdateVisual()
Returns
void