This component, added to a line renderer, will let you fill a list of transforms, and bind their positions to the linerenderer's positions.
More...
|
| virtual void | BindPositionsToTargets () |
| | Goes through all the targets and assigns their positions to the LineRenderer's positions.
|
|
| virtual void | Awake () |
| | On Awake we initialize our driver.
|
| virtual void | Initialization () |
| | Grabs the line renderer, tests counts.
|
| virtual void | Update () |
| | On Update we bind our positions to targets if needed.
|
| virtual void | Bind () |
| | A method meant to be called by the inspector button.
|
| virtual bool | CheckPositionCounts () |
| | Makes sure the counts match.
|
This component, added to a line renderer, will let you fill a list of transforms, and bind their positions to the linerenderer's positions.
◆ Awake()
| virtual void MoreMountains.Tools.MMLineRendererDriver.Awake |
( |
| ) |
|
|
protectedvirtual |
On Awake we initialize our driver.
◆ Bind()
| virtual void MoreMountains.Tools.MMLineRendererDriver.Bind |
( |
| ) |
|
|
protectedvirtual |
A method meant to be called by the inspector button.
◆ BindPositionsToTargets()
| virtual void MoreMountains.Tools.MMLineRendererDriver.BindPositionsToTargets |
( |
| ) |
|
|
virtual |
Goes through all the targets and assigns their positions to the LineRenderer's positions.
◆ CheckPositionCounts()
| virtual bool MoreMountains.Tools.MMLineRendererDriver.CheckPositionCounts |
( |
| ) |
|
|
protectedvirtual |
Makes sure the counts match.
- Returns
◆ Initialization()
| virtual void MoreMountains.Tools.MMLineRendererDriver.Initialization |
( |
| ) |
|
|
protectedvirtual |
Grabs the line renderer, tests counts.
◆ Update()
| virtual void MoreMountains.Tools.MMLineRendererDriver.Update |
( |
| ) |
|
|
protectedvirtual |
On Update we bind our positions to targets if needed.
◆ _countsMatch
| bool MoreMountains.Tools.MMLineRendererDriver._countsMatch = false |
|
protected |
◆ _lineRenderer
| LineRenderer MoreMountains.Tools.MMLineRendererDriver._lineRenderer |
|
protected |
◆ BindButton
| bool MoreMountains.Tools.MMLineRendererDriver.BindButton |
◆ BindPositionsToTargetsAtUpdate
| bool MoreMountains.Tools.MMLineRendererDriver.BindPositionsToTargetsAtUpdate = true |
whether or not to keep both in sync at update
◆ Targets
| List<Transform> MoreMountains.Tools.MMLineRendererDriver.Targets |
the list of targets - their quantity has to match the LineRenderer's positions count
The documentation for this class was generated from the following file: