|
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...
|
|
◆ 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:
- C:/Users/Jacob Wells/Desktop/C2M2/NeuroVISOR/Assets/Scripts/C2M2/Utils/Extensions/LineRendUtils.cs