class
BeamInstance
public class BeamInstance Represents an individual beam instance within the effect.
Constructors
BeamInstance() Properties
| Name | Type | Description |
|---|---|---|
Delta | Single | Returns the normalized lifetime of the beam, ranging from 0 (just born) to 1 (expired). |
Methods
Void Destroy() Destroys the beam instance, cleaning up its resources.
Fields
| Name | Type | Description |
|---|---|---|
StartPosition | Vector3 | Start position of the beam in world space. |
EndPosition | Vector3 | End position of the beam in world space. |
Renderer | LineRenderer | LineRenderer component used to render the beam visually. |
TimeBorn | Single | Time when the beam was created (born). |
TimeDie | Single | Time when the beam will expire (die). |
RandomSeed | Int32 | Random seed used to generate consistent random values for this beam instance. |