InGameLineGizmo
A class in Root.Township, the global namespace.
Pooled line drawn in the game world between two points, made by InGameGizmosSettings.DrawLine. Its ends can follow transforms.
- Listed in Global namespace: I to L
- Inherits or implements
PooledObject - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
InGameLineGizmo() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
Methods
3 private and internal methods
| Member | What it is |
|---|---|
private void Awake() | Sets the line to two points and gives it its own material copy. |
private void RequestedSetup(PooledObject pooledObject) | Runs when taken from the pool. Tints the line with InGameGizmosSettings.Color. |
private void Update() | Draws the line between the end markers. If a followed transform was destroyed, keeps the end at its last spot. |