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.Generation ModesWeighted 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 StreamingChunkLoader2D 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 APIThe 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.Dynamic player-based chunk loading and unloadingWeighted random chunk generationDeterministic seed generationPerlin noise chunk generationConfigurable Perlin value rangesOverlapping Perlin ranges supportConfigurable Scale, Octaves, Persistence, Lacunarity, and OffsetConfigurable preload radiusKeep, deactivate, and destroy unloading modesOptional predefined spawn chunkReal time Scene view GizmosCustom inspector with Perlin noise previewRuntime APIZero dependencies





