Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMLineRendererDriver Class Reference

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...

Inheritance diagram for MoreMountains.Tools.MMLineRendererDriver:

Public Member Functions

virtual void BindPositionsToTargets ()
 Goes through all the targets and assigns their positions to the LineRenderer's positions More...
 

Public Attributes

List< Transform > Targets
 the list of targets - their quantity has to match the LineRenderer's positions count More...
 
bool BindPositionsToTargetsAtUpdate = true
 whether or not to keep both in sync at update More...
 
bool BindButton
 a test button More...
 

Protected Member Functions

virtual void Awake ()
 On Awake we initialize our driver More...
 
virtual void Initialization ()
 Grabs the line renderer, tests counts More...
 
virtual void Update ()
 On Update we bind our positions to targets if needed More...
 
virtual void Bind ()
 A method meant to be called by the inspector button More...
 
virtual bool CheckPositionCounts ()
 Makes sure the counts match More...
 

Protected Attributes

LineRenderer _lineRenderer
 
bool _countsMatch = false
 

Detailed Description

This component, added to a line renderer, will let you fill a list of transforms, and bind their positions to the linerenderer's positions.

Member Function Documentation

◆ 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

Member Data Documentation

◆ _countsMatch

bool MoreMountains.Tools.MMLineRendererDriver._countsMatch = false
protected

◆ _lineRenderer

LineRenderer MoreMountains.Tools.MMLineRendererDriver._lineRenderer
protected

◆ BindButton

bool MoreMountains.Tools.MMLineRendererDriver.BindButton

a test button

◆ 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: