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

TubeRenderer Class

Extends MonoBehaviour
Creates and renders a tube mesh from a sequence of points.

Properties

int RenderQueue[Get]
Vector2 RenderOffset[Get]
float Radius[Get]
Gradient Gradient[Get]
Color Tint[Get]
float ProgressFade[Get]
float StartFadeThresold[Get]
float EndFadeThresold[Get]
bool InvertThreshold[Get]
float Feather[Get]
bool MirrorTexture[Get]
float Progress[Get]
float TotalLength[Get]

Protected Functions

virtual void Reset ( )
virtual void Awake ( )
virtual void OnEnable ( )
virtual void OnDisable ( )

Member Functions

Updates the mesh data for the tube with the specified points.
If the component is enabled it will automatically show the renderer.
Parameters
points
The points that the tube must follow
space
Indicates if the points are specified in local space or world space
Hides the renderer of the tube.
Shows the renderer of the tube.
Resubmits the fading thresholds data to the material without re-generating the mesh.
void InjectAllTubeRenderer
( MeshFilter filter,
MeshRenderer renderer,
int divisions,
int bevel )
void InjectFilter
( MeshFilter filter )
void InjectRenderer
( MeshRenderer renderer )
void InjectDivisions
( int divisions )
void InjectBevel
( int bevel )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon