Random Elements System - Flexible Weighted & Ranged Randomizer

FREE
Publisher vodoleystudio
File size 802.73kB
Number of files 87
Latest version 1.0.1
Latest release date 2024-03-13 05:22:15
First release date 2024-03-13 05:22:15
Supported Unity versions 2018.4.2 or higher

Random Elements System is a flexible weighted & ranged randomizer for Unity with an amount of build-in types and the possibility of adding unlimited custom types in one click.

It has all complicated logic encapsulated and provides simple API for robust usage.

Forget about magic numbers in different parts of your code, strange min max fields for each random usage, and trivial implementation of a weighted random system - just call GetRandomValue()


⭐ Implemented concrete types:

  • Selective Random Weight Collection
    • char
    • string
    • float
    • int
    • Color
    • Vector2
    • Vector2Int
    • Vector3
    • Vector3Int
    • Quaternion
    • GameObject
    • ScriptableObject
    • UnityEngine.Object
    • MonoBehaviour
  • Min Max Random Range Property
    • int
    • float
    • Color
    • Vector2
    • Vector2Int
    • Vector3
    • Vector3Int
    • Quaternion
  • Random Bool Property
  • Random Percentage Property
  • Random String Property

⭐ Implemented extra abstract types:

  • Random Enum Property

✨ Special features for Selective Random Weight Collection:

  • Equal weight for all items
  • Use each item once per cycle (non-repetitions random during each cycle)
  • Get probability at runtime in the code and the Editor Inspector

⚡ Possibility to subscribe for OnGenerated event to be up to date for all new generating


⚙️ Simple configuration and usage in one line code or via Editor Inspector - all implementation encapsulated


🪄 Flexible and extendable for all own types using Editor Tool for generating new classes with one click


✅ Many examples that cover a lot of standard use cases


✍️ Well-commented and documented source code


IMPORTANT: We use Newtonsoft Json Unity Package in our plugin, so if you use an old version of Unity you will required to integrate the Newtonsoft Json manually into your project.



🧡 ENJOY


Contact Us | Documentation

Top Publisher Assets