View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.0
- Last updated
- First released
- Unity version
- 2022.3.21 or later
- Package size
- 92 KB
- Files
- 18
- Views in the past week
- 1
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $4.99 on
Keywords
Chunk Loader 2D
Build and stream procedural 2D worlds with dynamic chunk generation, loading, and unloading. ChunkLoader2D generates chunks around the player as they explore, while keeping distant areas inactive.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 7
Chunk Loader 2D screenshot 1
About this asset
Generation Modes
- Weighted Random. Assign a spawn weight to each chunk prefab. Higher weights increase the relative probability of that chunk being selected, allowing you to create randomized worlds with controlled distributions.
- Deterministic Seed. Use a custom seed to generate a reproducible world. The same seed and configuration produce the same chunk layout, making this mode suitable for repeatable worlds and player defined seeds.
- Perlin Noise. Generate spatially coherent chunk distributions using Perlin noise. Configure scale, octaves, persistence, lacunarity, and offset, then assign Perlin value ranges to your chunk prefabs. Overlapping ranges allow multiple chunk types to be eligible at the same noise value.
Chunk Streaming
ChunkLoader2D calculates the player's current chunk and maintains a configurable preload radius around it.
When chunks move outside the active radius, you can choose between:
- Keep. Generated chunks remain active.
- Deactivate. Chunks are deactivated and reactivated when revisited.
- Destroy. Chunks are destroyed and regenerated when needed.
Seed and Perlin generated chunks can be deterministically regenerated when revisited.
Runtime API
The runtime API allows your own systems to interact with ChunkLoader2D programmatically, making it possible to integrate chunk streaming into custom gameplay, world systems, and other runtime logic.
From the publisher's Asset Store listing.
Technical details
- Dynamic player-based chunk loading and unloading
- Weighted random chunk generation
- Deterministic seed generation
- Perlin noise chunk generation
- Configurable Perlin value ranges
- Overlapping Perlin ranges support
- Configurable Scale, Octaves, Persistence, Lacunarity, and Offset
- Configurable preload radius
- Keep, deactivate, and destroy unloading modes
- Optional predefined spawn chunk
- Real time Scene view Gizmos
- Custom inspector with Perlin noise preview
- Runtime API
- Zero dependencies
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2022.3.21f1 | Compatible | Compatible | Compatible |
As listed on the Asset Store.