Skip to content

areyoutoo/Unity3D-Bags

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Unity3D-Bags

Quick and simple Bags library for Unity3D.

Helper classes to manage the storage and randomized retrieval of values. Managed randomness sometimes feels more authentic for gameplay.

All bags provide a common GetNext() call. Most of them provide a simple Add(T) call, or can be populated during construction by passing any IEnumerable reference.

RandomBag
Pick items with uniform randomness.
ShuffleBag
Pick items with uniform randomness; avoids repeating items until the bag has been completely used (and automatically refilled).
WeightedBag
Pick items with weighted randomness.

About

Slightly random collections for Unity3D.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages