Runtime Spawner 1.2.5
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.Spawner.MinMaxRangeAttribute Class Reference

Attribute to draw a min–max slider in the Unity Inspector. Can be applied to:

More...

Inheritance diagram for MegaCrush.Spawner.MinMaxRangeAttribute:

Public Member Functions

 MinMaxRangeAttribute (float minLimit, float maxLimit, bool showFields=true)
 Creates a new min–max range attribute for use in the Inspector.
 

Public Attributes

readonly float MinLimit
 The absolute lower limit for the slider control.
 
readonly float MaxLimit
 The absolute upper limit for the slider control.
 
readonly bool ShowFields
 If true, numeric input fields are also shown to the right of the slider.
 

Detailed Description

Attribute to draw a min–max slider in the Unity Inspector. Can be applied to:

  • Vector2 or Vector2Int fields.
  • Custom serializable structs with fields named min and max (float or int).

Constructor & Destructor Documentation

◆ MinMaxRangeAttribute()

MegaCrush.Spawner.MinMaxRangeAttribute.MinMaxRangeAttribute ( float minLimit,
float maxLimit,
bool showFields = true )

Creates a new min–max range attribute for use in the Inspector.

Parameters
minLimitLower clamp for the slider.
maxLimitUpper clamp for the slider.
showFieldsIf true, also display numeric fields for manual entry.

Member Data Documentation

◆ MaxLimit

readonly float MegaCrush.Spawner.MinMaxRangeAttribute.MaxLimit

The absolute upper limit for the slider control.

◆ MinLimit

readonly float MegaCrush.Spawner.MinMaxRangeAttribute.MinLimit

The absolute lower limit for the slider control.

◆ ShowFields

readonly bool MegaCrush.Spawner.MinMaxRangeAttribute.ShowFields

If true, numeric input fields are also shown to the right of the slider.


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