TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.WeaponAutoAimRadiusCircle Class Reference

This class will automatically draw a circle to match the radius of the auto aim weapon if there's one. More...

Inheritance diagram for MoreMountains.TopDownEngine.WeaponAutoAimRadiusCircle:
MoreMountains.Tools.MMLineRendererCircle

Public Attributes

CharacterHandleWeapon TargetHandleWeaponAbility
Public Attributes inherited from MoreMountains.Tools.MMLineRendererCircle
DrawAxis Axis = DrawAxis.Z
 the axis on which to draw the circle
float NormalOffset = 0
 the distance by which to push the circle on the draw axis
int PositionsCount = 60
 the amount of segments on the line renderer. More segments, more smoothness, more performance cost
float HorizontalRadius = 10
 the length of the circle's horizontal radius
float VerticalRadius = 10
 the length of the circle's vertical radius
bool AutoRedrawOnValuesChange = false
 if this is true, the circle will be redrawn every time you change a value in the inspector, otherwise you'll have to call the DrawCircle method (or press the debug button below)
bool DrawCircleButton
 a test button used to call the DrawCircle method

Protected Member Functions

override void Initialization ()
 On initialization, hooks itself to weapon changes.
Protected Member Functions inherited from MoreMountains.Tools.MMLineRendererCircle
virtual void Awake ()
 On Awake we initialize our line renderer and draw our circle.
virtual float ComputeX ()
 Computes the x position of the new point.
virtual float ComputeY ()
 Computes the y position of the new point.
virtual void DrawCircleX ()
 Draws a circle on the x axis.
virtual void DrawCircleY ()
 Draws a circle on the y axis.
virtual void DrawCircleZ ()
 Draws a circle on the z axis.
virtual void OnValidate ()
 On Validate we redraw our circle if needed.

Additional Inherited Members

Public Types inherited from MoreMountains.Tools.MMLineRendererCircle
enum  DrawAxis { X , Y , Z }
 the possible axis More...
Public Member Functions inherited from MoreMountains.Tools.MMLineRendererCircle
virtual void DrawCircle ()
 Sets all point positions for our line renderer.
Protected Attributes inherited from MoreMountains.Tools.MMLineRendererCircle
LineRenderer _line
Vector3 _newPosition
float _angle
float _x
float _y
float _z

Detailed Description

This class will automatically draw a circle to match the radius of the auto aim weapon if there's one.

Member Function Documentation

◆ Initialization()

override void MoreMountains.TopDownEngine.WeaponAutoAimRadiusCircle.Initialization ( )
protectedvirtual

On initialization, hooks itself to weapon changes.

Reimplemented from MoreMountains.Tools.MMLineRendererCircle.

Member Data Documentation

◆ TargetHandleWeaponAbility

CharacterHandleWeapon MoreMountains.TopDownEngine.WeaponAutoAimRadiusCircle.TargetHandleWeaponAbility

The documentation for this class was generated from the following file: