Protected
_awokenProtected
_boundsProtected
_boundsProtected
_enabledProtected
_object3DProtected
_onProtected
_onProtected
_renderSet the color gradient describing the color of the trail at various points along its length.
Creates trails when the GameObject moves.
Set the color at the end of the trail.
The width of the trail at the end of the trail.
Readonly
entityReadonly
isRenderer flag
Set the minimum distance the trail can travel before a new vertex is added to it.
Query mask
Set the color at the start of the trail.
The width of the trail at the spawning point.
Choose whether the U coordinate of the trail texture is tiled or stretched.
How long does the trail take to fade out, in seconds.
Component user data
Set the curve describing the width of the trail at various points along its length.
Set an overall multiplier that is applied to the TrailRenderer.widthCurve to get the final width of the trail.
Select whether the trail will face the camera, or the orientation of the Transform Component.
Select whether the trail will face the camera, or the orientation of the Transform Component.
Indicates whether the component is enabled.
Set whether the component is enabled.
Set the map use to rendering the trail
Get trail material
Set this to a value greater than 0, to get rounded corners on each end of the trail.
Set this to a value greater than 0, to get rounded corners on each end of the trail.
Set this to a value greater than 0, to get rounded corners between each segment of the trail.
Set this to a value greater than 0, to get rounded corners between each segment of the trail.
Get three.js native object3D
Get local position
Set local position
Get local quaternion
Set local quaternion
Get render order
Set render order
Get local rotation
Set local rotation
Get local scale
Set local scale
Set whether visible
Get renderer world bounds
Protected
_attachProtected
_destroyProtected
_detachProtected
_onProtected
_onProtected
_onProtected
_onProtected
_updateProtected
_updateProtected
_updateAfter camera render
Before camera render
the camera use to render
Unsubscribe a event, if the callback param is not defined, all subscribers of this type will be removed.
Optional
callback: SubscriberCallbackFnsubscriber callback
Subscribe a event
event type
callback functions
Optional
options: { options
Optional
priority?: PriorityOptional
target?: anySubscribe a event, just emit once
subscriber callback
Optional
priority?: PriorityOptional
target?: anySet renderer's transformation
TrailRenderer component
Export
TrailRenderer
Date
2024.4.19
Author
yisky