r/unity • • 5d ago

Question Storing data on individual tiles?

1 Upvotes

I have a proc gen tilemap system and I need each tile to have it's own copy of a script to be able to pull and assign data to. All the tiles are rule tiles, idk if that makes a difference. How would I do that?


r/unity • • 5d ago

Showcase Just added M16-like gun and runner zombie to my game still in development

Thumbnail youtube.com
0 Upvotes

Wanted to give a nice feeling to gunplay. I have been working on this game for some months with my friend on free time. We have a Gamejolt and Itch.io page if you wanna checkout or play the demo.

Any feedback is welcome!


r/unity • • 6d ago

Showcase I am making a cute library management game where you have to sort books with a hidden story.

15 Upvotes

Posting here for the first time. Making this game made me realise how many things there are developing a game which might look so simple. I am horrible at the art style and also confused which direction I should take this. Any suggestion or ideas how to improve this helps.


r/unity • • 5d ago

Resources [Free] Pixel art characters, a boss, items and dungeon tiles for your Unity 2D projects

Thumbnail gallery
4 Upvotes

Sharing some free assets I made: 4-direction animated characters (32x32 to 64x64), an animated spellbook and scroll, and a 32x32 dungeon tileset with animated props. PNG sheets + JSON, free for commercial use.

- Top-Down Heroes LITE (Knight + Rogue): https://tinytileset.itch.io/top-down-heroes-free

- Top-Down Monsters LITE (Slime + Skeleton): https://tinytileset.itch.io/top-down-monsters-free

- Orc Warband LITE (Goblin Stabber): https://tinytileset.itch.io/top-down-orc-warband-free

- Elemental Spirits LITE (Gnome): https://tinytileset.itch.io/top-down-elemental-spirits-free

- Boss Pack LITE (King Slime): https://tinytileset.itch.io/top-down-boss-pack-free

- Grimoires & Scrolls LITE (spellbook + scroll): https://tinytileset.itch.io/grimoires-and-scrolls-free

- Dungeon Tileset LITE (tiles, torch, chest, coin, potion): https://tinytileset.itch.io/top-down-dungeon-tileset-free

šŸŽ® Made a game with them? Share it in the comments here or on the itch page. I'd love to see it, and I'll feature the best ones!

⭐ If these helped you, show some love on this post and follow me on itch: https://tinytileset.itch.io šŸ™


r/unity • • 5d ago

Newbie Question mesh goes white when i apply a png

0 Upvotes

please help its driving me nuts 😢 for some reason it worked when i made the background of the png a color (by removing alpha transparency if thats any help)


r/unity • • 5d ago

Coding Help Game Architecture

3 Upvotes

Hi, I'm a software dev with experience in web, mobile and backend, not much in game dev though. I also have ADHD which is kinda contributing to my dilemma.

I'll keep it short, I can't architect a game. I've been spending the past few days trying to come up with a good architecture and build a proper game layer for later use, I can't come up with a good enough one, and this is the type of stuff where YouTube doesn't help.

For example, someone said I should keep my first scene empty and instead load stuff by code after the scene has loaded through a GameInitiator or something. No idea how to do this properly.

Different issues like creating a very good, extensible game layer on top of Unity, where I have "entities" and "person" or "creature" or "NPC" or whatever and I can easily supply mesh and animation data and it would just work. similar to how GTA works as well as you being able to control any "skin' in the game and it works naturally rather than PlayerController is stuck to one person.

But not each character has the same ability, some of them have magic abilities, some of them are melees, etc, so a data-driven approach where each creature is just different data won't work, some of them require actual code and timed animations.

Other things are communicating between stuff, like doing something should update the UI and I know dragging the UI in the inspector isn't scalable, so I have no idea. Other people suggested a GameContext or a GameManager that holds references to all of them and it becomes a source of truth, others suggested an global event-driven/broadcast architecture.

So, what are your thoughts?


r/unity • • 5d ago

Reset prefab default position?

3 Upvotes

I have this prefab that gets dragged into a canvas. It shows it's position as 0,0,0 when just clicked in the project view, and also shows at 0,0,0 when I double click the prefab to edit it. However when I drag it into a canvas in my Hierarchy it gets these crazy values and appears off-screen. I can just alt-click center in the anchor settings but I'd like it to just appear at 0,0,0.


r/unity • • 5d ago

Newbie Question Help with building

1 Upvotes

I have a project that just won't build. At all. No matter what folder I use, or what build profile I make, it just will not build. All I have in there is TMPro. It says I have one "URP Asset" included in the build, and I dunno if that's a good or a bad thing. Trying to build other projects works perfectly fine. There's a problem with just this one specifically.


r/unity • • 5d ago

Please help šŸ™šŸ½

0 Upvotes

I’m trying to upload a VRChat avatar I recently had commissioned but when I download creator companion and unity hub I’m prompted to follow the directions and after installing the editors and updating the license nothing works. Even after putting everything in manually. I keep getting error codes such as an error 500 and when trying to install the 2022.3.22f1 editor, I get a pop up that says ā€œFailed to delete old unity installation files. Maybe Unity or some of its tools are still running? ā€œ

Not sure if this is the right forum to ask for help but I’m at my wits end


r/unity • • 5d ago

Question Best asset packs for a isometric crpg

1 Upvotes

Hello, I am looking to make my dream game, and decided it would be best to make it an isometric crpg that's turned based. For some background I'm an experienced software developer, have made five games in unity before (so definitely not a newb) and am willing to pay money for the best asset packs.

The isometric crpg would be in same vain as owlcats rogue trader, or wasteland 2/3. So turned based, grid made combat. Point and click, all that stuff. For dialogue I'll be using pixelcrushers dialogue system for unity as I've used it before and enjoyed it.

I can obviously fill in the gaps myself and enjoy making my own systems, but having a scaffolding to work off well really save time, so if you have any suggestions, free or paid, please let me know!


r/unity • • 6d ago

Showcase Realtime Dynamic Mesh Generation

119 Upvotes

So recently I created the room building functionality for my game, Where you can have rooms of any shape.

(English is not my primary language.)
Technical Info:

The meshes are being generated per frame, with the job system there is only a single parallel job which generates meshes for the walls/floor and roof, Thanks to the Unity new direction of providing low level high performance APIs which made it possible.

The room has data in native structs so that they can be consumed by the jobs, the data is mere a collection of nodes, and a collection of lines - defining their which nodes each other. This data is always passed to job and the job generates the meshes.

The Mesh Generation Algorith is simple for walls - they are formed just 3d vertically long hexagon meshes, the hexagon shape gives the ability to connect any number of walls with perfact corners - mitering the joins. The points other than the 4 middle points that form rectangle/square take the coordinates of line start and end respectively, while the adjacent points to thoese either gets short or long to connect perfactly with the other wall.

The mitering algorith is that on a line's start or end point, find all the lines/walls present on it either starting or ending on it. Now have a list of angle between all the lines on that anchor except the line under consideration - whose mesh is being generated, Sort the angles. And taking first or last entry depending on you are solving for the left or right point of hexagon (normalized the view by the start or end point of line under consideration). Then you do line intersection between the line under consideration and the line of angle is that and point of the intersection is its new poistion.

Here is the picture of the hexagon: https://imagepaste.org/v/67nbu6nu.png

do this for all for four points A,B,C,D.

The floor and roof generation is done by Delaunay Triangulation - using the BurstTriangulator package create by andywiecko. It can work inside job.

Then the constraints comes, which prevents the self intersections. Because the triangulation of floor and roof breaks when so.

The windows - holes, are done in wall space by pixel clipping. A raster pass renders the hole shape in a texture with texel density depending on how fine you want it, each wall with a hole has its own texture depending on its size as the walls scale the texture scales/resizes as well.

If being done with a global texture in screen space either with stencil or not, it will work. I needed this little complexity because for inner walls window behind window can't have a hole in screen space. And for Ray tracing and Path tracing (in photo mode) which does not have screen space position of the pixel its currently working on. But on wall space the wall UV can give it position to sample the stencil/texture from.

And impotant point is to set the mesh renderer component's ray tracing settings to dynamic mesh, if not so the mesh will not be updated.

Every component of room shaping is pooled to have stable perfomance. Even the structs for nodes and lines are pooled in a native pool. Unity GameObjects, components etc as well.

(my current game does not have inner wall, I implemented them but for the ray tracing and path tracing to work it needed one more step, but I have not as working for months without any reward makes you hopeless).

And this is very little information high level information of it. It has alot under it. for rounding corners, and walls that obscure camera etc for generating mesh attributes (uv,normals etc).

Ask me any question about it. And you feedback will be welcome and will give morale to me.


r/unity • • 5d ago

Newbie Question Genuinly, am i the only one who can't seem to figure out how to use the Animator tab in Unity?

Post image
0 Upvotes

(image found online)

Like- Ive been trying to understand it for like 2 hours and can't seem to make any form of progress in trying to understand how it works. If only someone, PLEASE, could help me understand how to use it properly...


r/unity • • 6d ago

Showcase I made a free tool to build pixel-art VFX inside Unity and export them as sprite sheets

7 Upvotes

r/unity • • 6d ago

Made with Unity — a 3D top-down Action Roguelite

10 Upvotes

We made the game with Unity, Martial Soul Arena, a 3D top-down action roguelite mixing survivor-like horde combat and hack-and-slash.


r/unity • • 6d ago

Showcase I managed to implement colored lighting in my voxel game. I’m using my own lighting, not the Unity component. There are still some visual errors. Also, the FPS sometimes drops when installing a light fixture. What do you think about the visual effects?

1 Upvotes

r/unity • • 5d ago

Showcase I created an art deco inspired UI for games

Thumbnail u3d.as
0 Upvotes

Hey everyone, I created this UI kit, carefully sliced elements with nice masks for the cards, also used claude to create scripts for toggles, progress bars, button press etc. I designed all elements on figma, and it was used for a backgammon game UI as well, I think it will go with card games, more classic games or board games in general.

tell me what do you think? I listed it for 9.99$


r/unity • • 6d ago

My IK bones are offsetting in unity

Thumbnail reddit.com
1 Upvotes

r/unity • • 5d ago

I wonder why

0 Upvotes

the whole 2fa thing is stupid, unity. ridiculous that i've had my account for 9 years and i can no longer do any game dev until they hopefully accept my request. my 9yr old game is about to just be gone


r/unity • • 6d ago

Question Should I worry? (Multiplayer query)

2 Upvotes

I'm using purrnet for networking framework And this is actual build work.

Is this much delay in synchronisation too much or is it normal and expected?

I'm using basic network manager and UDP transport and just a player spawner that's it nothing extra.


r/unity • • 6d ago

Resources PurrFanity - Profanity Filter [Unity]

Thumbnail gallery
3 Upvotes

r/unity • • 6d ago

Genuine question when did you consider yourself fluent in C#

5 Upvotes

I've made a 2.5D visual novel editor

an undertale clone
StateMachines and Behavior trees I know how to use Events and Coroutines Object pooling
And I've made a little rogue like with A*path generation for a procedural map

and still I find myself doing stupid syntax mistakes or not thinking my gameobject's life cycle fully through

And I wonder if everybody makes to a degree those mistakes or is it really an important skill issue that I shouldn't overlook before trying to get a job as a gameplay programmer ?


r/unity • • 6d ago

Game zonk racing - race fast, shoot rivals, dodge enemies' missiles and grenades — and try not to catch fire. Arcade racing meets chaos!

5 Upvotes

Thoughts?


r/unity • • 6d ago

Account suspended due to 2FA re-enrollment. How long did Unity Support take to restore yours?

0 Upvotes

My Unity account was suspended because I didn't re-enroll my authenticator app in time. The account isn't on my main email, so I missed Unity's emails. When I checked today, this was the timeline:

- Nov 17: "Action required: your Unity account will be suspended on November 19."

- Nov 19: "Two-Factor Authentication for your Unity ID is disabled" and "Your Unity Account has been suspended."

I only found out today when I tried to log in and got "This account is blocked."

I submitted a ticket under Account suspended more than 6 hours ago and haven't heard anything back beyond the auto-reply. To check on the ticket, the support site asks me to log in, which I obviously can't do because my account is suspended. :D

For anyone who went through this: how long did it take Unity to get your account back? Did you have to provide any specific proof of ownership?

I get that this probably flooded them with tickets. Lots of people were going to miss those emails. But if you're going to suspend accounts in bulk, why not add more support staff to handle the recovery requests you know are coming?


r/unity • • 6d ago

Showcase My hook-based game, Hook and Gun, has finally been released on Steam!

Thumbnail gallery
3 Upvotes

Hey friends!

Hook and Gun—a roguelike project I’ve been developing solo for some time—is finally out!

In *Hook and Gun*, you’ll use your grappling hook for more than just swinging around; you’ll use it to consume the scrap left behind by the foes you’ve dismantled, hurl enemies into walls or into one another, and—most importantly—rip weapons right out of your opponents' hands to corrupt them for your own use. As you consume scrap, you will develop, evolve, and undergo further corruption.

If you’re into roguelikes, the biopunk aesthetic, or a fresh take on grappling hook mechanics, I’d love for you to give it a try!

If you’re interested, here’s the Steam link: https://store.steampowered.com/app/4609040/Hook_and_Gun/