Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Utils.LineRendUtils Class Reference

Static Public Member Functions

static bool SetEndpointPositions (this LineRenderer lineRend, Vector3 startPosition, Vector3 endPosition)
 Set both endpoint positions of the line renderer at once. More...
 
static bool SetEndpointColors (this LineRenderer lineRend, Color startColor, Color endColor)
 Set both endpoint colors at once More...
 
static bool SetEndpointColors (this LineRenderer lineRend, Color color)
 Set both endpoint colors to be the same color at once More...
 

Member Function Documentation

◆ SetEndpointColors() [1/2]

static bool C2M2.Utils.LineRendUtils.SetEndpointColors ( this LineRenderer  lineRend,
Color  color 
)
static

Set both endpoint colors to be the same color at once

Returns
True if successful

◆ SetEndpointColors() [2/2]

static bool C2M2.Utils.LineRendUtils.SetEndpointColors ( this LineRenderer  lineRend,
Color  startColor,
Color  endColor 
)
static

Set both endpoint colors at once

Returns
True if successful

◆ SetEndpointPositions()

static bool C2M2.Utils.LineRendUtils.SetEndpointPositions ( this LineRenderer  lineRend,
Vector3  startPosition,
Vector3  endPosition 
)
static

Set both endpoint positions of the line renderer at once.

Returns
True if successful

Designed for use with line renderers with two points, but safe to us on any line renderer


The documentation for this class was generated from the following file: