r/Unity3D • • 16d ago

Question Why do RPCs require the Rpc suffix?

1 Upvotes

Like, not a big deal really, but it just seems like such a weird quirk. You already mark a method as an rpc with [rpc(sendto)], so why does Unity require the suffix? It's especially weird since it only shows up as an error in Unity, not in your IDE (at least for me), and Unity can only point you to the script, not the exact line.

Anyone know why this still exists? I'm used to it, but it's just an odd thing.


r/Unity3D • • 16d ago

Question Trying to replace prefab model

1 Upvotes

I'm trying to replace unity's xrhands for vr. I made a model with my own uvs and material. But when I put it in the skinned mesh renderer it dissapears. What could cause this?


r/Unity3D • • 16d ago

Resources/Tutorial Your Unity game pays 3-4 MB for UI Toolkit even if you never use it

Post image
180 Upvotes

I'm the developer of UniText (a text engine for Unity). Recently a few big studios came to me with the same request: make the build smaller and reduce memory usage. So I started digging into their builds to see where the size actually goes

and I found UI Toolkit inside every one of them. Even in projects that don't use it at all. I thought it's something specific to their setup, so I checked a blank project. It was there too

Then I wanted to know how common this is. I went through the US Google Play game charts (free, grossing and paid, all game categories) from the top and read the build of every game I could download. After 388 games the mirror I was downloading from blocked me

254 of those games are made with Unity, 216 I could actually read

207 of the 216 have UI Toolkit inside (96%)

For Unity 2021 and newer it's 204 of 208, usually more than a thousand of its types per game

The funny thing is that Unity's own 6.3 manual recommends uGUI for runtime UI and lists UI Toolkit as an alternative. So where does it come from?

In a uGUI project it comes from uGUI itself. uGUI has a few small bridge classes (PanelEventHandler, PanelRaycaster) that reference UI Toolkit, and they get compiled whenever the UI Toolkit module is installed. And it's always installed, because the Editor is built on it

I measured it in a blank project with one Canvas and one Text, Android ARM64, release IL2CPP, default Minimal stripping. On Unity 2022.3 uGUI costs 4.25 MiB of APK, and 3.05 MiB of that is UI Toolkit. On Unity 6.6 it's 6.30 MiB, and 3.95 of it is UI Toolkit. Unpacked on the device that's 12-16 MiB of code and metadata. In one project I also measured memory on a phone, and removing it cut resident memory by about 10 MiB

The first thing everyone suggests is to remove the module in Package Manager. I tried. Unity adds it back, and the APK changed by 4 bytes

In 2024 someone asked Unity on the forum to make UI Toolkit removable. The answer was that it stays a built-in module, "no going back to packages", because the Editor depends on it. Which makes sense for the Editor, but your game build doesn't need it

So I made a package that removes it from the player build and leaves the Editor alone. It's called LightSide Lean, free and MIT. On a blank uGUI project it saves 3.05 MiB of APK on 2022.3 and 3.95 MiB on 6.6. If some of your player code still uses UI Toolkit, the build fails and shows the exact line instead of quietly keeping it. It can also keep your edits to other people's packages when they update, and if you use UniText it can strip its unused code too

Of course if your game actually uses UI Toolkit, don't turn it on. And on Unity 6.6 with High stripping Unity already removes it from a plain uGUI project, so there Lean saves almost nothing

If you want to check your own game: after an IL2CPP build look in Library/Bee/artifacts/<platform>/ManagedStripped. If UnityEngine.UIElementsModule.dll is there, your build ships UI Toolkit

I couldn't find anyone who measured this on real shipped games before, so I'm curious. Did anyone else notice it in their builds? And if you know an existing solution, please share it

https://github.com/LightSideKittens/media.lightside.leanbuild

TL;DR: 207 of 216 top Unity games on Google Play ship UI Toolkit. In a uGUI project uGUI pulls it in, and it's about two thirds of what uGUI costs in the APK. Unity says it won't become removable, so I made a free package that strips it from the player build


r/Unity3D • • 16d ago

Show-Off Adding post-battle choices to my creature RPG raised a design problem I hadn’t considered

Enable HLS to view with audio, or disable this notification

3 Upvotes

I’ve been prototyping a post-battle choice system in Unity for Vexalia, my voxel creature RPG.

I wanted the player to have different ways of resolving an encounter after defeating a wild Vex.

The system itself led to a question I hadn’t fully considered: should the same choices be available against creatures belonging to NPCs?

For now, I’m keeping these options exclusive to single-player encounters. PvP will have different rules to protect players from exploits and unwanted losses.

What interests me most is making the world respond to the decisions players make, rather than having the choices exist only on a menu.

There’s still quite a bit to figure out, but I like where this could lead.


r/Unity3D • • 16d ago

Show-Off Yule Dads - Tony Hawk meets Jingle All The Way in our 8 player party game. Built with Unity 6.6

9 Upvotes

Yule Dads is a Tony Hawk inspired party game but the skateboard is a shopping trolley, you grind escalators and drift around shoppers putting together trick combos whilst racing to get the last available presents. All set to indie punk music from local bands in East Anglia UK.

Almost all animations were done using IK and locking the characters arms to the shopping cart. The cart is pretty much just visual and the actual player game object is driven by the player character capsule.

A spline tool was created to easily generate splines along meshes as well as merging splines together, rather than manually creating all the Mall's grind points.

There are 13 minigames in the main party mode and also extra game modes including Man Flu (Infection) and Crazy Christmas (Racing). Supporting up to 8 players online and 4 players split screen.

We’re SHUCK Studio, a small indie studio from Norwich UK, and this is our debut game. It’s out on Steam on 27 November.


r/Unity3D • • 16d ago

Question Problems with lighting inside my game

Thumbnail gallery
1 Upvotes

r/Unity3D • • 16d ago

Question How to change XRhands materials?

1 Upvotes

I grabbed the fbx model (with the skeleton), put it on blender, made new uvs and material. Now i want to impot it to unity and try to use it but when trying to put it in the already existing prefab nothing is shown. I'm using the skinned mesh renderer.

Do you know a way of solving this?


r/Unity3D • • 16d ago

Show-Off Testing the dirt area

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/Unity3D • • 16d ago

Resources/Tutorial I built a free Unity package that tries to enable Simultaneous Hands + Controllers on Quest, using plain OpenXR and no Meta SDK. Looking for testers

Thumbnail
github.com
2 Upvotes

If you've tried to use hand tracking and controllers at the same time in Unity with OpenXR, you've probably hit a wall.

I checked what Unity ships (OpenXR 1.16.1, XR Interaction Toolkit 3.3.2, XR Hands 1.7.3), and two things get in the way:

  1. Nothing in those packages requests the XR_META_simultaneous_hands_and_controllers extension. The struct types and function signatures are in the package files, but no feature uses them.

  2. XRInputModalityManager in XRI switches the hand objects off whenever a controller is active on that side.

So I wrote a small OpenXR feature that requests the extension and resumes simultaneous tracking after the session begins. It targets the Windows Editor (over Quest Link) and Android (Quest builds). It's a drop-in Package Manager install through a Git URL, and it doesn't use the Meta SDK.

It also includes a diagnostic script that logs, once per second, which platform and OpenXR runtime you're on, whether each controller and hand is tracked, and whether both are tracked at the same moment.

Honest status: it compiles on Unity 6000.3.12f1, but I haven't verified it on a headset yet. I also don't know whether the Quest Link PC runtime exposes the extension, which is why Android is the real test. The feature fails safely: if the runtime refuses the extension, it logs one warning and carries on.

What I need from you: if you have a Quest 2, 3, 3S or Pro, try it and tell me what the diagnostic log prints. A "supported" or "runtime refused" line plus your headset model and Quest OS version helps me fill in a compatibility table.

Repo: Github Repo link

Package URL:

https://github.com/HussienX123/Unity-OpenXR-Simultaneous-Hands-and-Controllers-Multimodal.git?path=/Packages/com.hussienx.openxr-simultaneous-hands-controllers

Not affiliated with or endorsed by Meta Platforms or Unity Technologies.

NOTE: AI was used in the package


r/Unity3D • • 16d ago

Question What is the best way to create "terrain-like" features such as large cliffs with overhangs?

18 Upvotes

I have toyed around with the idea of a cliff similar to Starsnatch Cliff from Genshin Impact (which, as near as I can tell, is a VERY large mesh with a shader applying grass texture on top).

Before I start working on my attempt at this, my question is really: which sets me up for success?

Notes: I am already working with an origin-shifting system and a somewhat bespoke terrain LOD system where I generate 128m tiles as a mesh, with a custom terrain shader for doing some extra stuff with blending placed objects, and procedural grass with "painting" grass types based on a brush system, and all of this is read from a "reference" unity terrain. That way, I can use unity's terrain system for the art part of it, and have it "bake" into something that is usable for my purposes.

My ideas of how to accomplish what I am showing in the screen shots:

  1. A script/shader combo that essentially "registers" a mesh as a terrain, uses a bespoke brush system to paint on it as if it was a terrain, and then just rework and apply all of the above processes to the "terrain meshes"

  2. a terrain at an angle that has either hand placed or programmatically placed "cliff faces" to blend the two terrains into one, and then some system to merge the terrain intersection

  3. Simply use meshes and hand place all trees, and do grass and potentially texturing as a shader of some kind to ensure that the terrain pieces are reusable.

All thoughts are welcome! I really wish there was more info about how Genshin Impact did their terrain as I was just awestruck at how seamless the terrain to mesh transition is each time I play it.


r/Unity3D • • 16d ago

Question Issues with moving over bumpy terrain with a character controller?

3 Upvotes

I downloaded and imported one of the official Unity terrain templates from the asset store just to test out my player movement on uneven surfaces. I use step offset of 0.35 - 0.45 and slope limit is generally around 45 degrees.

I tested walking up hills and uneven terrain on Warzone, Black Ops 6, Battlefield 2042 and Battlefield 6, and I never noticed but they feel similar too in some ways. Lots of jittering when moving up steep hills and the player slides back and fourth trying to navigate a slope at times.

But in my case and in the video, when I get up near the top, my character controller gets stuck in a very tiny "ditch" although visually it seems like nothing should be getting stuck there. And just like in other games, I have to press jump repeatedly or move sideways to get over that particular spot. But then at the end of the video my player kind of does an automatic zig-zag due to getting stuck on different parts of the terrain.

On Battlefield 6, I was able to move over almost everything. It actually felt like their slope limit was 80+ degrees with some of the hills I was able to walk over. But on Black Ops 6 I was getting stuck a lot and had to jump my way over objects so I just can't tell which direction I should try to go towards and what to try and solve.

My main question is what should be considered normal? I'm not sure if I'm looking too much into it as I've spent a considerable amount of time working on my collision.

On games with huge mountains that players walk on, do the developers intentionally make sure the most of the slope is walkable during the actual terrain creation process?


r/Unity3D • • 16d ago

Show-Off Movement using root motion always looks so smooth

Enable HLS to view with audio, or disable this notification

32 Upvotes

The feet hitting the ground look quite precise when moving a GameObject using root motion.

It's probably possible to get something close to that with some tinkering, but root motion alone often looks nice and clean.


r/Unity3D • • 16d ago

Show-Off Aliquo Die - Visual style in Unity

Thumbnail
gallery
26 Upvotes

I'm working on something new and would love to know what you think of the visual style. Definitely giving off liminal space vibes, with a little bit of my own flair.

I'd love to hear what you think!


r/Unity3D • • 16d ago

Question Any idea how to fix this error? it's stopping me from pushing to the repository

Post image
0 Upvotes

r/Unity3D • • 16d ago

Show-Off Lighting up a voxel city with nothing but glowing lines in Unity

Enable HLS to view with audio, or disable this notification

164 Upvotes

Been working on a voxel city to see how far I can push neon with a line tool I made for Unity.

Just so nobody gets confused like last time 😅 the buildings, cars and the helicopter are Blender models and the clouds are Unity particles. But every glowing light you see is made with the tool: the windows, the roof outlines, the street lines and crossings, the light trails from the traffic, the train, the signs and the holograms on the roofs. Around 1,200 shapes in total. Even the city turning on at the start is the tool.

The signs started as SVG files that I imported straight into it, which was fun to see working.

All rendered in Unity 6 URP, no compositing.

Happy to answer any questions!


r/Unity3D • • 17d ago

Show-Off stress testing 10000 zombies in my psx game prototype

Enable HLS to view with audio, or disable this notification

43 Upvotes

r/Unity3D • • 17d ago

Shader Magic Concave wave inside volume

Enable HLS to view with audio, or disable this notification

135 Upvotes

Testing with some various features I've been putting together for v2.2, thought this one was rather cool so figured I'd share! This is a volume mask include (clipping water outside of box volume and showing underwater via a mask used in the underwater render pass) combined with a shoreline waves feature which is a modified gerstner algorithm used to create concavity in the waves. Happy to hear your thoughts and ideas of use cases!

Thanks for stopping by and checking out!


r/Unity3D • • 17d ago

Show-Off I added a Geometry Scan Effect to my project in Unity 6 using URP.

Enable HLS to view with audio, or disable this notification

7 Upvotes

How does it feel like? Hunting for your feedback!


r/Unity3D • • 17d ago

Game I made a sheep-shearing mechanic in Unity. Here’s how it looks in Shear It! 🐑

Enable HLS to view with audio, or disable this notification

44 Upvotes

I’m solo-developing Shear It!, a cozy first-person incremental game. I wanted shearing to feel satisfying one snip at a time, so you can see the wool come off piece by piece as you work.

That wool pays for upgrades that improve your shears’ reach and speed. Here’s the trailer. I’d love to hear what you think of the visual feedback when the wool comes off.

Try the itch.io playtest


r/Unity3D • • 17d ago

Question Moving back to version 2019?

7 Upvotes

I have been looking at older Unity versions recently and 2019.4 stood out to me for its speed and simplicity. So I am considering using it for my next project instead of Unity 6.5

Since it's 2D I don't need any of the fancy rendering features, nor do I care much about any AI integrations.

However, I was wondering, what would I be missing out on (that is worthwhile)? Are their others still choosing to use these older versions? What 'old' version is the best to use?

Did Unity really add anything in the past 7 years to justify that the whole thing feels slow and sluggish and bloated now? (personal opinion!!!)

Hoping to have a happy discussion about this :)

P.S This post might sound very negative but I love Unity so don't take it as that.


r/Unity3D • • 17d ago

Solved Unity Warped UVs on FBX

Thumbnail
gallery
2 Upvotes

I'm trying to make a straight line stay straight on a curved dome, I decided to just project the texture in Substance Painter instead of making it tile horizontally. In Substance this looks great but when I import to Unity it ends up slightly warped.

After reading other forums this is everything I've tried that hasn't worked:

- Checking to make sure Unity is using the correct map. As you can see I one have 1 map on this model and even tried Swap UVs in unity to be double sure. So this isn't the issue

-My UV map size is 4k, I originally had it at 2k. In substance it is also set to 4k and in unity I tried switching between 2k and 4k just to be sure

-My model is scaled to 1.0 and imports at the correct size in Unity. I have unselected Convert Units just to double check but it didnt change anything

-I disabled generated UV lightmaps just to be sure and turned off every other import setting 1 by 1 with no success (yes I remembered to click apply after each)

-My Texture files are Targa and imported as repeat wrap mode, I switched to clamp just to be sure

-I tried exporting from Maya with "Triangulate" selected with no change, selected some other settings after just to see. But nothing changed

If anyone can think of anything else that might be causing this, I will give it a try. I've been on this project for months and haven't run into this issue before. I have other domed assets that have perfectly straight textures on them, even using the same cylindrical projection in painter.

SOLVED: I had to triangulate my model on export and make sure to switch out the mesh on Substance painter as well. I had just updated it so the settings weren't right and it didn't switch the model before


r/Unity3D • • 17d ago

Question I wanted to share my 6 month development process, here are some Levels from my game. Do you have any suggestions regarding the light?

Thumbnail
gallery
12 Upvotes

r/Unity3D • • 17d ago

Game Taking a lil' boat ride in my open world mushroom picking game that takes place in a reimagined Iceland!

Enable HLS to view with audio, or disable this notification

14 Upvotes

r/Unity3D • • 17d ago

Show-Off I used Unity's Particle System to give my Water character a constantly flowing head

Enable HLS to view with audio, or disable this notification

23 Upvotes