Under Review

Implement a Range-type

Jöran Malek 2 months ago • updated by Lazlo Bonin (Lead Developer) 2 months ago 1

Implement a valuetype Range

struct Range {
    float min;
    float max;

which does not exist within Unity in order to implement an inspector for this MinMaxSlider.

Required attribute to work with: Range

Nodes required

  • Create Range
  • IsWithinRange (Input: Value (float), Range (this type), Output: Bool), functionality: Checks if value is within Range
  • ClampToRange (Input: Value (float), Range (this type), Output: float), functionality: Value clamped to Range

Above usage would be a simple inspector like Vector 2 - two float input fields.

If field/property has [Range]-Attribute this inspector should change into mentioned MinMaxSlider to ensure that no invalid range is entered.