What are the best Unity packages?
▲ 57 r/Unity2D

What are the best Unity packages?

Every time I start a new Unity project, I usually import a few small packages just to make my life easier.

I like using custom folder icons/colors because Unity’s default project window feels a bit too plain. I’ve also seen people use things like Odin Inspector or hierarchy tools to keep the editor cleaner and faster to work with.

What are the best Unity packages or tools you’ve used?

u/gamejake14 — 1 day ago

Games with different map generation?

I’m developing a roguelike and I didn’t want to make the classic dungeon layout with square rooms and corridors, like Isaac or Enter the Gungeon. I wanted to try something a bit more natural.

Right now I’m using a room graph approach: each room has a purpose, then I generate main paths and secondary paths. I’m also testing a danger level value for different areas, so enemies, props and events can depend on how risky that part of the map is.

It made me think that procedural maps can go way beyond just “generate rooms and connect them”. Things like biomes, weather or factions could make the layout feel more alive and less random.

Do you know any games that do something especially interesting with procedural map generation? Something that goes a bit further than the usual dungeon layout. Tanks :)

u/gamejake14 — 12 days ago
▲ 33 r/shaders+1 crossposts

Is using a shader a good way to recolor pixel art sprites in Unity?

Hi! I’m working on a Unity project where I want to change character sprites automatically during gameplay.

Instead of creating a separate sprite for every possible variation, I tried using a palette swap shader.

The idea is simple: the shader uses two 8x1 palette textures. For each sprite pixel, it checks whether the color matches one of the colors in the base palette. If it does, it replaces it with the color at the same position in the target palette.

Something like this:

for each pixel:
    for each color in basePalette:
        if pixelColor matches basePalette[i]:
            pixelColor = targetPalette[i]

It works, but this is my first time working with shaders, so I’m not sure if this is a good approach.

Has anyone worked with something similar before? Is using a shader a good solution for sprite recolors in Unity, or would you recommend handling this in a different way?

u/gamejake14 — 22 days ago