View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 6000.0.67 or later
- Package size
- 141 KB
- Files
- 12
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $7.50 on
Keywords
Identity Registry
- Price drop
A class designed to efficiently track and provide unique id's for objects in scripting environments, using 32-bit unsigned integers.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 1
Identity Registry screenshot 1
About this asset
A simple and effective class to help with registering and providing unique id's. Uses a binary tree data structure to deliver, set and check id's with a log(N) time complexity. Suitable for both lower value id's, higher values, or the whole spectrum with the ability to keep the memory footprint low*.
Useful when unique id's are strictly required, or when you do not want to have 128-bit GUIDs for your data's id's. This solution delivers 32-bit uints.
* tips to keep memory footprint low are included in the manual.
Primary Features:
- Functions: FindNext() and FindNext(uint fromId)
- Function: Set(uint id, bool used)
- Function: Contains(uint id)
- Ability to save and load the registry into a data array.
- No Garbage Collection while in use by utilizing pooling.
- Usable with full range of uint's. From 0 to id 4,294,967,295.
- Branching kept minimum for performance.
- Source code included.
In need of help or have a feature request? Feel free to contact me. Also for purchasing assessments.
Limitations:
- Designed to work with scripting, no GameObject components are included in this package.
- Does not work within Unity Jobs or Burst compiler.
Extra Information:
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.0.67f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.