A falling sand simulation template. It allows you to simulate thousands of pixels at once by using DOTS.
🟪 Pixel Simulation
Each pixel can be simulated and has individual properties. There are predefined materials like 🟥 Lava, 🟧 Oil, 🟨 Sand, 🟦 Water, ⬛ Rock, 🟫 Wood, 🟩 Acid, … .
💫 Smooth Sub-Pixel Camera Movement
No jumpy camera. Your camera will move smoothly even if the movement is on a sub-pixel level.
⏳ DOTS for speed
Being multi-threaded by default makes things super fast.
The only downside is that if you want to extend it you will have to be familiar with the Jobs system and BURST.
😺 Easy image based level generation
Draw your levels into a png and then configure them with scriptable objects in the Editor.
🌈 Mix pixel and no-pixel content
The pixel world is rendered onto a simple quad in your scene so you can easily mix it with your scene objects and apply any post-processing.
⭐ Pixel based collider generation
Have your character walk on the sand with ease.
📚 Demo level included
Check out Kamgam/SandGame/Addressables/Level1.
✔️ Full Source Code
I publish this asset with full source code because as a developer I know how annoying it is to not have source code access. If you like it then please remind others to purchase the plugin. Don’t just copy and paste it everywhere. Thank you ❤️
✔️ Supports Unity 2021.3+, 2022, 2023, Unity 6, … LTS
It may work with earlier versions too but those are not tested anymore.
😎 Works on any platform
Yes, it works on mobile and WebGL too though you will need a relatively modern phone (runs with 30 fps on 5 year old devices, 60 fps on current mid-level phones).
✔️ Works with any render pipeline
Built-In, URP and HDRP
Original_Link: https://assetstore.unity.com/packages/templates/systems/falling-sand-game-template-pixel-simulation-267575
Download Links:
Asset Version v1.1.1 (15 Jan 2024)