Data Structures
Provides essential data structures missing from Unity's .NET implementation, including MinPriorityQueue for efficient priority-based queuing. Bridges the gap between Unity's .NET version and .NET 6's standard library, enabling developers to use modern data structure patterns without external dependencies.
com.mushakushi.datastructures Unity Compatibility
Unity 6 Supported
2023.2 Supported
2023.1 Supported
2022.3 LTS Supported
2021.3 LTS Supported
2020.3 LTS Unsupported
2019.4 LTS Unsupported
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/datastructures.git 
README Markdown
Copy this to your project's README.md
## Installation
Add **Data Structures** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/datastructures.git
```
[](https://www.pkglnk.dev/pkg/datastructures)README
Data Structures
MinPriorityQueue
This is a minimum priority queue. Unity's .NET version predates .NET 6, which introduced PriorityQueue.
MinPriorityQueue<int> queue = new MinPriorityQueue();
queue.Enqueue([2, 1]); // adds 2 and 1 to the queue
int first = queue.Dequeue(); // returns 1
queue.Any(); // returns true
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In