Random Elements System - Flexible Weighted & Ranged Randomizer View on Asset Store (opens in new tab)

Package details

Latest version
1.0.1
Last updated
First released
Unity version
2021.3.6 or later
Package size
803 KB
Files
87
Favorites
19
Views in the past week
10

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Random Elements System - Flexible Weighted & Ranged Randomizer

by vodoleystudio (opens in new tab)

5.0 / 5 · 3 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 3
4 stars 0
3 stars 0
2 stars 0
1 star 0

Are you tired of constant magic numbers with Random.Range() calls in different parts of your code with two class members for a min-max declaration in the Editor? Then this plugin is for you.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Random Elements System - Flexible Weighted & Ranged Randomizer, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 5

Random Elements System - Flexible Weighted & Ranged Randomizer screenshot 1

Random Elements System - Flexible Weighted & Ranged Randomizer screenshot 1

About this asset

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

From the publisher's Asset Store listing.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP Custom
2021.3.6f1 Compatible Compatible Compatible Compatible

As listed on the Asset Store.