r_unity3d | Unsorted

Telegram-канал r_unity3d - r/Unity3D

251

News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).

Subscribe to a channel

r/Unity3D

A hopeless world.

https://redd.it/1vxwc6b
@r_Unity3D

Читать полностью…

r/Unity3D

Solo-developing a Cities: Skylines-style game: 5,000 cars simulated with Unity DOTS

https://redd.it/1vxikg3
@r_Unity3D

Читать полностью…

r/Unity3D

TIL a frame rate cap can quietly wreck your scene load times too

Our game runs capped at 30fps, that's intentional for gameplay. Turns out that same cap was also active during scene loads, which doesn't help anything there since there's nothing being rendered that benefits from a steady 30fps, you just want it to finish.

Profiled a slow scene load and found WaitForTargetFPS eating 70% of frame time. CPU finishes its work early, then just sits there waiting to hit the 30fps cap, frame after frame, for the whole load.

Fix was simple, uncap it just for the load and restore it back to whatever it was set to before:

int previous = Application.targetFrameRate;
Application.targetFrameRate = -1;
await LoadSceneAsync(...);
Application.targetFrameRate = previous;

Went from a 9.5 second scene load to 3 seconds.

If your load times don't match what the profiler says the real work costs, check how much of that gap is just WaitForTargetFPS before you go chasing Instantiate/GC ghosts.

https://redd.it/1vxj6i6
@r_Unity3D

Читать полностью…

r/Unity3D

Last week I was working on a QUAD control idea and thought lets use gecko. Just experimenting with animation rig and IK.

https://redd.it/1vx88rq
@r_Unity3D

Читать полностью…

r/Unity3D

Hi - Please be gentle. Is it better to pursue rendering my world map/objects and pawns/npcs/player with Graphics.DrawMesh or are GameObjects perfectly acceptable?

I'm trying to find people's opinions and experiences. Just trying to learn.

I will ultimately have an open world scene and interior scenes, sometimes many pawns on screen - maybe up to 50 at once as a high estimate.

I've been experimenting with various things and can't quite decide. I want to get it nailed before I go much further.

Right now instead of using SpriteRenderers I am drawing every 'sprite' with Graphics.DrawMesh, including several layers of 'sprites' for each pawn (hair, body, head, etc), every building, every road segment, etc etc. It's working nice enough right now but I worry about how thirsty it may become as I scale up or how it may perform on a lower end machine.

One plan I had was to generate segments of the open world map as a static image instead of constructing it at runtime as I am now, I'll be adding collisions anyway so all buildings will be impenetrable anyway, and I'd just have another layer over everything for the tops of the buildings, which could be segments again.

That would mean only having to draw the various layers of pawns with Graphics.DrawMesh. Would that be alright? Of course it would be better than just drawing/batch rendering everything but is there another solution to this? i.e. having several 'layers' for clothing/body type/weapons etc?

Thanks for reading!

https://redd.it/1vxbl5e
@r_Unity3D

Читать полностью…

r/Unity3D

Worked on a cute summer art update, finished when summer almost ended

https://redd.it/1vx8f6w
@r_Unity3D

Читать полностью…

r/Unity3D

Can you please guide me with Import settings for my background sky image

So, basically i am new to both unity and inkspace. Inside inkspace i created a nightsky image with random canvas size i guess its 3000x3000, but i used only small space for the nightsky asset. i kept inkspace zoom to 100% and create the exact size of nightsky that i would need in unity. exported later in 1456px.

After i imported in unity it appears way smaller, but it is taking 2MB size.
Considering game optimization, what are the exact settings to import from inskpace and unity settings?

I searched on youtube and web for settings, but could not find any specific settings. please somebody guide

https://redd.it/1vx41vw
@r_Unity3D

Читать полностью…

r/Unity3D

Is Unity quietly building a cloud editor? And could it kill my app?

Hello dear Unity redditors. I built an app that replaces Unity Remote for me and my colleagues.

It casts your Unity game view to your phone over LAN instead of a cable connection with touch and gyro going back into the editor, so you can feel your game on a real screen without making a build.

Now Unity 7 is coming and one part of the roadmap keeps me thinking. CoreCLR is good news, but the new web APIs combined with the browser Scene Preview they showed at Unite is interesting combo. Put those together and it looks like Unity is slowly building some kind of cloud editor.

To be fair, what they showed seemed like for artists and producers checking a scene in the browser (lighting, assets etc). I don't think you will be able to press play and test your game on the browser with it. So it doesn't overlap with what my app does today. But I'm a solo dev and my tool lives or dies with where this engine goes, so I pay attention to this stuff maybe more than I should.

\-Nagging-

>!And to ship this thing I passed full review three times, Unity Asset Store, Google Play and the App Store, and every one of them was a pain in the ass. These changes could make all of that effort obsolete. (even had to rename my app buy a new domain discuss with Unity support for 3 months and Unity legal team because of the "Uni" prefix)!<

\-----

So, couple of questions. Do you think Unity is actually heading toward a cloud editor, and would you even want one? and for the Asset Store tool builders, how do you plan around the engine roadmap?

https://redd.it/1vwynmx
@r_Unity3D

Читать полностью…

r/Unity3D

6 months of development Ashen of thrones

https://redd.it/1vwwl6f
@r_Unity3D

Читать полностью…

r/Unity3D

How Valheim and co. did? Vegetation and physics

Hey everyone,

I'm working on a large open-world Unity game (maps up to 16x16km maybe more) and have built a custom deterministic vegetation streaming system. I use Flora (by Magnetic Arcade) for GPU-driven rendering.

The architecture uses a 3-ring system around the player based on 64m grid cells (matching the A* Pathfinding Project RecastGraph tiles):

Ring 3 (Visual - \~700m): Pure Flora GPU instances. No GameObjects.

Ring 2 (Navigation - \~200m): Real GameObjects with MeshColliders. Needed for the RecastGraph to carve the NavMesh.

Ring 1 (Interaction - \~150m): Real GameObjects with gameplay scripts (e.g., harvestable trees).

The Setup:

Vegetation positions are calculated deterministically via stable hashes (no scene serialization). When a cell enters Ring 2, we need to swap the cheap Flora GPU instance for a real Prefab (with a FloraInstanceRenderer component attached to keep it batched) so it gets a collider. When it leaves, the prefab gets disabled and re-enable the Flora instance.

The Bottleneck:

The math/planning phase is very fast (\~1.6ms per cell). However, the actual materialization (spawning the Prefabs, adding components, registering the renderer in Flora) costs about 7.0ms per cell.

Since a cell transition is currently atomic, crossing a border queues up \~15-30 cells. This causes massive frame spikes (worst-case \~37ms in a single frame) because I'm are doing dozens of Object.Instantiate and AddComponent calls at once.

I'm aware I cannot use Unity Jobs for this, as GameObject/Component instantiation is strictly Main Thread.

Maybe time-slicing the instantiation on the Main Thread using a Queue and a time budget (e.g., process instantiation for 2ms per frame, spread over multiple frames). The challenge here is avoiding visual popping (the Flora instance must stay visible until the exact frame the Prefab is fully spawned and registered).

Is there a better architectural pattern for swapping between GPU instancing and physical colliders at runtime?

For those using A* Pathfinding Project: how do you handle dynamically spawning thousands of colliders for NavMesh carving without nuking the frame rate?

Is Unity ECS (Entities) the only real way to get sub-millisecond dynamic collider streaming at this scale, or can I get away with standard Prefabs + Time-slicing?

Any tricks for pooling objects that require dynamically added components at runtime, rather than pre-built prefabs?

Any insights, past experiences, or "don't do this, do that" warnings are highly appreciated.

https://redd.it/1vwsvdx
@r_Unity3D

Читать полностью…

r/Unity3D

How to add individual movement using a wind shader to a sprite sheet?

Hi everyone, I'm trying to figure this out. I followed this tutorial https://www.youtube.com/watch?v=dDQRDa7bADY (Unity 2D Wind Sway In 255 seconds) and then looked at this one, https://www.youtube.com/watch?v=VcUiksxY (Simple Wind Shader Effect in Unity!) but they're all for individual sprites. I'm searching for more tutorials right now, but I am a BEGINEER at unity (started about 2 weeks ago) and I've been trying to learn more about it at my own pace... And I've stumbled upon a perplexing scenario.

In this scenario, I'm trying to add wind shaders to a sprite sheet. Following both tutorials, I've managed to add the wind effect to the sheet, but it covers ALL of it. Not the individual sprites within the sheet. I'm not quite sure how to make it so it only covers each sprite, since there are quite a few. I'm doing this for foliage if that helps at all with context, but if anyone has any idea on how to figure this out, please let me know. Should I try using the math nodes to calculate where each sprite is?

(CodeMonkeyUnity" rel="nofollow">https://www.youtube.com/@CodeMonkeyUnity)

https://redd.it/1vw16a0
@r_Unity3D

Читать полностью…

r/Unity3D

1-Year Progress of our game Greda Inferno!

https://redd.it/1vwh9tz
@r_Unity3D

Читать полностью…

r/Unity3D

Finally got the paint roller working. Used a mask to "paint" one set of buttons in, then swapped them for actual GUI buttons after the animation. Might not have been the best solution but it worked!
https://redd.it/1vweoue
@r_Unity3D

Читать полностью…

r/Unity3D

I built a game entirely around building kinetic energy by launching yourself

https://redd.it/1vw9vfu
@r_Unity3D

Читать полностью…

r/Unity3D

Any ideas on how I can improve our Pull ability visuals? Feedback for the floppy disk installation is also welcome!

https://redd.it/1vw8n0n
@r_Unity3D

Читать полностью…

r/Unity3D

Phantom Shift Demo V0.6 Release

Hi everyone,

I just released Phantom Shift Demo V0.6! This is a 2D Action Platformer/Dungeon Crawler where your dash effect creates a phantom that is used as an enemy decoy in combat. In this release, we added new features including a Save System. We also fixed issues with the menu screens, interactable props, interactable prompts, and sword hit VFX. Download the game on my store listing below. Stay tuned for future updates!

Gameplay Video:

https://youtu.be/9cZWgnd-AAc?si=NC6L_-Y_eYnb5Mdf

Store Listing:

https://akshay33169.itch.io/phantom-shift-demo

Thanks,

akshay33169

https://redd.it/1vxtqgv
@r_Unity3D

Читать полностью…

r/Unity3D

I made a lip syncing system for the characters speaking

https://redd.it/1vxk75x
@r_Unity3D

Читать полностью…

r/Unity3D

I implemented a real-time fluid simulation for my painting game in Unity

https://redd.it/1vx6umo
@r_Unity3D

Читать полностью…

r/Unity3D

TileMakerDOT v2.6.4 map editor is officially live!
https://redd.it/1vx6922
@r_Unity3D

Читать полностью…

r/Unity3D

420k+ units later a post mortem of my game Arctico.
https://redd.it/1vx8zmg
@r_Unity3D

Читать полностью…

r/Unity3D

5 years ago we asked ourselves what if we replaced bullets with hockey pucks and now we've officially released our second unity game, Wild Ice!

https://redd.it/1vx56ss
@r_Unity3D

Читать полностью…

r/Unity3D

Mesh deforming script for soft pillow effect for my game!

https://redd.it/1vx2do7
@r_Unity3D

Читать полностью…

r/Unity3D

Tossing the boss around...

https://redd.it/1vwz2n8
@r_Unity3D

Читать полностью…

r/Unity3D

Building Glider64 in Unity – are we getting the N64 vibe right?

https://redd.it/1vwwok3
@r_Unity3D

Читать полностью…

r/Unity3D

1M vs 1M fight in my simplified Total War inspired tech demo

https://redd.it/1vwtqcm
@r_Unity3D

Читать полностью…

r/Unity3D

I made an advanced particles collision system

https://redd.it/1vwbpzj
@r_Unity3D

Читать полностью…

r/Unity3D

Laptop for game dev

Hi,

I am an 2D artist who is working on a metroidvania. My task is to build the levels and enviroments by putting in a lot of 2D assets in 3D space and make the parallax look good. I just have moveink 14 right now which doesent support unity so I need a seperate laptop and would like to spend up to 1000€ max. The less the better.

Ty for any recommandations

https://redd.it/1vwd0wx
@r_Unity3D

Читать полностью…

r/Unity3D

[Showcase] Made some 2D pixel art character animations for Unity projects!

https://redd.it/1vvzw36
@r_Unity3D

Читать полностью…

r/Unity3D

Making my first 2D physics game
https://youtu.be/ue44LUEXIlA?si=7gcx6kn2B9N2Akr5

https://redd.it/1vw8r74
@r_Unity3D

Читать полностью…

r/Unity3D

the esoteric-aussie adventure game that i made from my van

https://redd.it/1vw4h5h
@r_Unity3D

Читать полностью…
Subscribe to a channel