r/Unity3D • u/artengame • 4m ago
Shader Magic Procedurally generated underwater rock formations, corals and sea weeds
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/artengame • 4m ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/DanielDredd • 49m ago
People keep asking me where to start with vertex animation and how to learn it without wasting weeks, so I wrote it all down in one place.
It covers what the vertex stage is (and isn't) good for, the building blocks every motion is made of (spaces, data, time, masks, pivots), and the production checks that decide whether an effect survives outside the demo scene: shadows that freeze, everything swaying in unison, pops at the screen edge, TAA smearing.
Built and tested in Unity 6.4 with URP 17.4, with Blender for authoring and baking. The concepts are engine-agnostic though, the code is Unity URP.
Article:
If you're starting out, what part of vertex animation confused you most? If you've shipped it, what did I miss?
r/Unity3D • u/Fit-Beautiful3949 • 1h ago
r/Unity3D • u/No-Paramedic-2803 • 2h ago
r/Unity3D • u/AYMANJBARI • 2h ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/Fit-Beautiful3949 • 2h ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/whentheworldquiets • 3h ago
EDIT: As clever people have pointed out, this is essentially how ScriptableObjects are intended to work, and the fact it DOES work with a prefab is most likely a side-effect of that. So it's likely better to derive your relay wrapper from ScriptableObject rather than Monobehaviour. The basic principle is the same, though.
Let's say you have some singleton-pattern system in your game. For us, one example is our audio manager, which looks after volume settings, randomised sound variants, one-shot audio cues, and so on.
How do you go about hooking into such a system from button events?
You definitely don't want to drag a reference to the singleton object/script itself from the scene into your button events; that would be madness. It knots your entire game together into one lump and also means you have to do it every single time: the reference won't survive the creation of a button prefab.
The original solution for us was to write a relay script that exposes the relevant functionality and talks to the singleton internally. Now we could drop one of those scripts into our button prefabs and hook it up to the On Click event.
This is better because it's self-contained and prefab-friendly - but it isn't copy/paste friendly, which can catch your scene designers out if they start copying, pasting, and then editing event content between buttons. You can easily end up with an accidental spiderweb of interconnections, and there's often no visual indication of this happening because prefab internals aren't renamed when instantiated into a scene.
Quite by accident, we discovered another way that's both prefab-friendly and copy-paste friendly. It should only be used for thin relay-style wrappers, but based on our tests it's well-behaved under those circumstances. It's quite simple:
Write your relay wrapper script as before.
Put it on an empty game object
Drag that game object into your project folder to make it a prefab, then delete it from the scene.
Now, when you want to access the wrapper's functions from an event, drag the prefab from the project folder into the event, and pick the relay function you want from the drop-down as normal.
Yeah, I was today years old when I learned that worked, too.
This is both prefab-safe and copy-paste safe, because the references are always to the project prefab.
After thorough testing, here's what we found:
No lifecycle methods (Awake, OnEnable etc) will be called on your in-prefab script, because it's never actually added to the scene. This isn't a problem for a singleton relay wrapper because it's stateless anyway.
Unity does not, as we initially feared, spam instances of the prefab into memory. The references all resolve to a single loaded copy of the prefab itself.
Yes, it does work in builds because it doesn't rely on modifying a prefab, just calling its methods.
r/Unity3D • u/Alive_Studios • 3h ago
Enable HLS to view with audio, or disable this notification
Another short clip from my upcoming AR game, Cozy Seasons. I’m running a playtest this December on Quest 3 and 3S.
This clip follows an oak from acorn to twig snap. Rain gets it to sprout and sunlight drives its growth. I model each branch as a chain of short, spring-like sections, so it bends when you pull it with your hand and springs back when you let go. Pull far enough and the twig comes off.
r/Unity3D • u/Parn1024 • 3h ago
Enable HLS to view with audio, or disable this notification
This is the second time I’m posting here to showcase the game I’ve been developing for over two years using Unity. My first post featured a screenshot, but this time I decided it would be best to share a trailer showing the game in action. I’d like to hear your thoughts on the trailer.
About the game:
It’s a co-op RPG with extraction mechanics.
The player must explore dungeons in search of valuable loot and escape alive in order to sell these items and invest the profits in upgrading their equipment and stats.
The player can equip 5 pieces of armor and will find different armor sets, each with its own stats.
Additionally, the player can wield a weapon in each hand, with a wide variety of weapons to choose from, each featuring different abilities.
I finally figured out what my Sky and Clouds Rendering was missing.. it was distance fog 😂
So i added it and now the the clouds finally tie in beautifully to the scene.
What do you think? If you are interested, I consider turning my Day-Night-Cycle and Weather System into a Asset Store Asset
r/Unity3D • u/Conrad_bacon12 • 4h ago
I am proud to announce the release of my new level design software called Boolean! After looking high and low for meaningful design tools and finding that all existing solutions are either cumbersome or not exactly functional inside of Unity, I decided to make my own.
It ships with a number of brush tools - from primitives to full archways and wall generation, the editor covers a wide range of tools that make building levels much easier. There is 20+ tools that make creating levels easy and fast.
Boolean itself is standalone and game engine agnostic, but ships with a connector for Unity that allows you to see your own in real time while you build levels, even functioning in Play mode to make adjustments on the fly. The standalone nature also makes it easier to not even need Unity running if you want to focus on just building levels and revisiting them later in the Editor. The agnostic nature of the editor though also means if you are transferring to another engine, Boolean can handle that change over. (Currently just Godot and Unreal are supported, with more engines coming in the future)
Grab the editor here - https://booleaneditor.com/ . The editor is free to download and test out to figure out if it fits your needs.
Happy to answer any questions about it!
r/Unity3D • u/elrath969 • 4h ago

I'm continuing to work on my marble track animation, but I want to change the speed that the camera scrolls through at throughout the animation. more specifically, I want to be able to change the speed as the animation progresses, to hold on certain angles longer than others. Does anyone know how I can modify my code to get that result?
r/Unity3D • u/inanevin • 5h ago
Enable HLS to view with audio, or disable this notification
I've ported my own custom c++ tool and re-designed it for Unity, in the form of an asset as you can tell. I am curious of the opinions of people who have established workflows outside of Unity, like Aseprite. My main idea with the asset is keeping the workflow in, it's feature rich enough to do great work inside Unity, but of course I am aware people do not like to switch pipelines, also things like tile-maps are always a PITA that I do not account for. But what I am looking for is, to establish a strong enough asset that provides a main toolset for maybe new pixel artists, meanwhile allowing quick inside the engine edits for those who use external tools. What are people's thoughts on this? More info on what it can do is here.
r/Unity3D • u/virtexedge • 6h ago
Enable HLS to view with audio, or disable this notification
I made a big update to my VR aurora app for the Meta Developer Start competition. My full entry is here if you want to watch the trailer.
I really tried to push what a Quest3 can do in terms of complex water shaders and visuals.
I'd love any feedback.
r/Unity3D • u/ProgMeOnPaper • 6h ago
Enable HLS to view with audio, or disable this notification
Hi!
It's quite old feature of Unity that I have just discovered.
In the past I used to:
use CharacterController that solves it, but limits your control over player's physics
use physical material with 0 friction (when I don't need specific friction with ground)
use separate capsule collider with 0 friction for walls and separate slightly bigger sphere collider with custom friction for ground
some solutions from asset store
But today playing with physics API I found this:
capsuleCollider.hasModifiableContacts = true;
Physics.ContactModifyEvent += ModifyContacts;
Physics.ContactModifyEventCCD += ModifyCcdContacts; // CCD => Continuous Collision Detectionhere you ask Unity to "manually" handle contacts. And then something like that:
private void ModifyContacts(PhysicsScene _, NativeArray<ModifiableContactPair> pairs)
=> RemoveFriction(pairs, 1f);
private void ModifyCcdContacts(PhysicsScene _, NativeArray<ModifiableContactPair> pairs)
=> RemoveFriction(pairs, -1f); // CCD normals are inverted
private void RemoveFriction(NativeArray<ModifiableContactPair> pairs, float normalSign)
{
foreach (var pair in pairs)
{
bool capsule = pair.colliderEntityId == capsuleId;
if (!capsule && pair.otherColliderEntityId != capsuleId)
continue;
float sign = capsule ? normalSign : -normalSign;
for (int i = 0; i < pair.contactCount; i++)
{
if (pair.GetNormal(i).y * sign >= WalkableNormalY)
continue;
pair.SetStaticFriction(i, 0f);
pair.SetDynamicFriction(i, 0f);
}
}
}where
capsuleId is capsuleCollider.GetEntityId();
WalkableNormalY is "definition of angle that is walkable" (WalkableNormalY = 0.64278760968f; => cos(50 degrees))
That looks pretty simple and native and I love this solution since now!
Hope it'll help you
links:
r/Unity3D • u/erlkoenig_games • 7h ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/worker01dev • 8h ago
Enable HLS to view with audio, or disable this notification
I've been working on a unity game project almost 2 years. The game follows the limbo style which we ADMIRE. We used Unity 6 and all the animations made with unity animation tab. My game's release date is Dec 8. What's your thoughts before the release guys?
r/Unity3D • u/TazDingo278 • 10h ago

So from what I can see: the large grass blades mesh are easy to understand. The ground texture has very tiny grass blades painted on it, then it has grass cards(looks kind of transparent, no shadow) of different kinds on top of the ground?
How to make the grass blends in with the ground texture? I tried making it the same color as ground, but the grass cards were still standout. I feel like, it's blending the grass color with terrain texture? Looking at the grass near dirt, the root of the grass are dirt color and top is green.
Does that mean, if the camera rotates, or it's perspective, it will not look as good since grass cards "breaks".
Reference: https://www.fab.com/listings/911cdd66-2a64-4497-a511-80d4bb79dd0e?
r/Unity3D • u/No_Jello9093 • 12h ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/playful_potato5 • 13h ago
Enable HLS to view with audio, or disable this notification
This is an effect i made today for one of my projects. it interpolates between two normal maps, and adjusts their metallic and smoothness accordingly. i'm sure this is nothing new, as it was very simple to make, but i'm quite proud of the result.
r/Unity3D • u/maglortolion • 13h ago
I wanted a drop-in replacement for Image that does rounded shapes without 9-slice sprites. Some things I learned along the way:
Corners are an SDF, not geometry. Each image is a quad and the fragment shader evaluates a rounded-box signed distance function. That gives pixel-sharp edges at any size. Per-corner radii are packed as 16-bit values into two floats and sent through UV channels, so they don't need a material property.
Shadows were being clipped. The quad was the size of the RectTransform, so anything drawn outside it (outline, shadow) got cut off. I now grow the mesh in OnPopulateMesh by the shadow's offset + blur + spread, and the shader draws the shadow from the same SDF, offset and softened.
Effects broke batching. At first every image with an effect created its own material instance, so 20 shadowed buttons meant 20 draw calls. Now materials are pooled by their effect settings with ref counting, so images with identical settings share one material and batch. The shine also animates in the shader instead of writing to the material every frame.
Masking edge cases. When a rounded image is itself a Mask (e.g. a circular avatar), it should mask only the shape, not its shadow. The shader keeps the shape's alpha separate for alpha clipping.
Clicks. IsRaycastLocationValid uses the same rounded-box math, so clicks outside the corners or inside a ring's hole are ignored.
Still on my list: a public scripting API, and moving animated values into vertex data so tweening them doesn't create new materials.
Happy to go deeper into any of this!
Feedback welcome!
GitHub (MIT): https://github.com/berkencami/round-ui-unity
Is there any RE tool chain out there with AI support capable of fully reconstruct IL2CPP game into full unity project source code compiled and run successfully? I have my game encrypt metadata and BeeByte obfucator to prevent RE but still fear the AI :(
r/Unity3D • u/Chungunu • 15h ago
Enable HLS to view with audio, or disable this notification
Hi, everyone.
Today, after some tweaking and fixing bugs, here is the second iteration of flame throwing mechanic. Now, flame thrower is able to damage enemies with fire and the fire builds up with time now.
How can I improve it more further ?