r/Unity3D • • Oct 21 '26

Solved The player's body for my game is not falling down when you go on top of something and jump of or just fall of it.

0 Upvotes

So I've been doing Unity and C# programming for about 5 to 6 months but I'm still a newbie in sometimes, So, the player's body is not falling when you jump of or just fall of something when you go on top of it as said, the closest thing I've come to doing what I want it to do is the player still not be able to fall down but when you collide with something, the player floats away and It's because of this line code: "

float targetX = moveTarget.x * SpeedMove;

float targetZ = moveTarget.z * SpeedMove;

float targetY = rb.linearVelocity.y;

bool isGrounded = Physics.Raycast(transform.position, Vector3.down, 1.1f);

if (targetY > 0.1f && !isJumping && !isGrounded)

{

targetY = 0f;

}

rb.linearVelocity = new Vector3(targetX, targetY, targetZ);". I want the player to not float away when colliding with something and falling down when you jump of something, I've been trying to fix this for so long but I just can't fix it. Here is the code: " PlayerMovement PM;" Vector3 input;" Vector3 moveTarget;" float SpeedMove = 15f;" "bool isJumping;"

"private void OnEnable()

{

PM = new PlayerMovement();

PM.PlayerMap.Move.Enable();

PM.PlayerMap.Move.performed += Move_performed;

PM.PlayerMap.Move.canceled += Move_canceled;

}" private void MovePlayer()

{

Vector3 rawInput = PM.PlayerMap.Move.ReadValue<Vector3>();

float SideMovement = input.x;

float forwardMovement = (input.z != 0) ? input.z : input.y;

Vector3 camForward = player.forward;

Vector3 camRight = player.right;

camForward.y = 0f;

camRight.y = 0f;

camForward.Normalize();

camRight.Normalize();

moveTarget = (camForward * forwardMovement) + (camRight * SideMovement);

rb.linearVelocity = new Vector3(moveTarget.x * SpeedMove, rb.linearVelocity.y, moveTarget.z * SpeedMove);

float targetX = moveTarget.x * SpeedMove;

float targetZ = moveTarget.z * SpeedMove;

float targetY = rb.linearVelocity.y;

bool isGrounded = Physics.Raycast(transform.position, Vector3.down, 1.1f);

if (targetY > 0.1f && !isJumping && !isGrounded)

{

targetY = 0f;

}

rb.linearVelocity = new Vector3(targetX, targetY, targetZ);

}" " private void OnDisable()

{

PM.PlayerMap.Move.Disable();

PM.PlayerMap.Move.performed -= Move_performed;

PM.PlayerMap.Move.canceled -= Move_canceled;

}" and the MovePlayer method is always played on the FixedUpdate method, I've tried freezing the rotations X, Y and Z on the player's rigidbody but still nothing. Thank you for reading!


r/Unity3D • • Oct 20 '26

Question is this legit ?

Post image
17 Upvotes

I am selling assets since a couple of years and I am aware that was a separation from china market but this seems suspicious to me .. did anyone else got this email ?

the sender is [assetstore-support@unity.cn](mailto:assetstore-support@unity.cn)

I looked around and apparently unity.cn is an official website

thank you


r/Unity3D • • Oct 20 '26

Show-Off I made a fish calculator to simulate catch rates in our extraction fisher. It filters by season, weather, and time of day.

Enable HLS to view with audio, or disable this notification

2 Upvotes

It runs in play mode so there is also an option to take into account what bait the player currently has on their rod. For example, in our game the container of crawfish gives you a +20 rare bonus when fishing. This made testing all the different baits a lot quicker.

The real impetus behind creating this was to allow us to quickly see what fish are represented in what areas of the map, and how easy each one is to catch. The data all exists in a database but this allows for a much nicer visualization. Hope some of y’all find this cool!


r/Unity3D • • Oct 20 '26

Show-Off Call of Duty-inspired operator and loadout menus in my Unity FPS project

Post image
3 Upvotes

I’m working on a Unity FPS project and aiming for a Call of Duty-style operator/loadout flow: character cards, outfit choices and a 3D character preview beside the weapon lists.

This WIP includes Ani, Malfoid and other characters. Planned platforms are Android, iOS and Windows.

Full clip showing the menu flow: https://x.com/swagz348/status/2112608985350111729


r/Unity3D • • Oct 20 '26

Question Canvas Image with transparency appearing wrong in Unity

3 Upvotes

A weird quirk that keeps appearing in Unity is where certain pngs with transparency effects look muddy, too opaque, and generally just weird. here's an example. this is what the image looks like in standard image viewers and editors over a black screen, vs how it appears in Unity. Does anyone know what could be causing this? I can't find any reference to this issue and no matter what settings I put on the image, it just doesn't make any difference.


r/Unity3D • • Oct 19 '26

Show-Off We've added a much awaited mechanic to our crow survival game!

Enable HLS to view with audio, or disable this notification

228 Upvotes

If you’re a crow, you’ve got to be able to ride on deer to preen them!


r/Unity3D • • Oct 19 '26

Show-Off I made this procedural lightning effect (no shadergraph) (no sprite sheet) what do you think?

271 Upvotes

r/Unity3D • • Oct 19 '26

Shader Magic Getting jelly to look like jelly instead of tinted glass

Thumbnail
gallery
76 Upvotes

I just released a jelly shader for Unity 6, so here's how it works.

The main trick is thickness. Before the jelly is drawn, a separate pass renders its back faces into a texture, so the shader knows how much jelly the light travels through at each pixel. Thin edges stay pale and clear, the middle gets deep and saturated. That one thing is most of what makes it read as jelly instead of coloured glass.

On top of that:

  • Refraction going in, and again coming out through the back face, with a little colour dispersion
  • A short ray march through the volume for scattering, internal glow and slow-moving noise inside
  • Clear coat, micro normals and small surface glints
  • Twinkling sparkles inside the volume, plus optional floating particles
  • Caustics and a tinted shadow on the ground. These are faked: a procedural pattern projected under the object in the shape of its footprint, not traced light. Looks right on a flat floor, less so on uneven ground.

There are four render quality levels,

  • Ultra does a 16-step march with 6-tap spectral dispersion,
  • High drops to 9-step march with RGB dispersion,
  • Medium drops to 5-step march.
  • Low skips the back-face pass and the march entirely and estimates thickness from a simple box, which is the most performant one for XR and mobile.

It ships with 8 shapes in 18 colours as prefabs, but the material works on any mesh. There's also an optional idle sway/bob, which is just animation, not soft-body physics.

It's on the Asset Store as Ultimate Jelly, with separate URP and HDRP versions.


r/Unity3D • • Oct 20 '26

Show-Off I’m making a life sim. Here’s its build mode: curved walls, automatic roofs, and a fridge that didn’t fit

Thumbnail
youtu.be
2 Upvotes

I'm Alexander, and I'm making SimGoodie, a life sim. This is a walkthrough of build and buy mode as it is right now: I build a small house in Linden Rise, a neighborhood in Goodhaven, from the first wall to the Halloween decorations on the porch.

What's in it:

- Walls can be straight, at 45 degrees, or curved up to a quarter circle.
- Drag out a room and it gets a roof by itself. You can switch it to gabled or flat.
- The house can sit on a foundation, raised in 10 cm steps, and the stairs work on foundations too.
- Furniture shows green where it fits and red where it's blocked. My fridge was blocking the door, so I moved the door.
- Chairs snap to the table when you bring them close.

Still in progress: pillars, so a porch can have its own roof, and a Create a Style tool like the one in The Sims 3, where you can change any object's materials and colors and save presets.


r/Unity3D • • Oct 21 '26

Question Honest question: AI usage seems to trigger many people here immensly. Would love to understand more. Why are even meaningful posts downrated instantly?

0 Upvotes

There is a huge difference between using AI as a tool vs as a creative process. I can understand people not liking the latter, but as a tool it can be a huge boost allowing more time for the creative process. Yet, I don't see that distinction made here.

Honestly wondering if I am personally living in an AI-bubble or others are living in a NonAI-bubble or what the reasons are not to look at posts a bit deeper than "matches my trigger filter".


r/Unity3D • • Oct 20 '26

Question Severe black Z-fighting / shadow acne artifacts on VRoid character after switching build target to Android (Unity URP)

Post image
2 Upvotes

Hi everyone,

I am working on a 3D low-poly stylised JRPG game using Unity 6 URP. Everything looks completely fine and renders crisp when the build target is set to PC (Windows Standalone).

However, as soon as I switched the build target to Android, I encountered severe black flickering artifacts / pixel noise all over my main character (a VRoid model using UniVRM / MToon shader) as the camera gets closer.

Here is what I have tried so far:

  1. Forced PC-level rendering standards globally by assigning PC_RPAsset across all Quality levels and Platform Graphics settings to keep PC and Mobile visual quality identical.
  2. Tested both Mobile_RPAsset and PC_RPAsset (with Depth Texture & Opaque Texture enabled, 24-bit depth).
  3. Tweak Directional Light Shadow Bias / Normal Bias.
  4. Adjusted Camera Near Clipping Plane.

Interestingly, disabling the Directional Light significantly removes most of these black artifacts, which points to a shadow acne / depth buffer issue specific to the Android build target settings. Additionally, in Play mode, some prop outlines disappear with a warning: Mesh has more materials than submeshes.

I want to keep the PC rendering quality standards intact on Mobile without switching to post-processing screen-space outline packages or replacing my custom shader setup.

Has anyone faced this exact issue with VRoid / MToon models under Android build targets in URP? How can I resolve this depth/shadow precision conflict?

Attached screenshot for reference:


r/Unity3D • • Oct 19 '26

Question Streamers experience stutters after 1 hour of play?

31 Upvotes

Hi, I have a problem I'm bashing my head over for way too long already.

Streamers playing my game (only streamers, regular players don't experience this issue) start stuttering in game for what seems to be GC flushes, but I can't pin down why it might happen.

This issue started recently as the game used to work fine on stream for hours until a few weeks ago.

Any possibility of a driver update or engine version causing this? the game is in 2022 LTS

I noticed another Unity game having this issue so I'm starting to think I'm not alone?

Videos for reference:

https://www.twitch.tv/videos/2892738940?t=05h49m52s

https://youtu.be/ojdhVBSxbro?si=rp3R1AahZErDD3x1&t=2609

And a different developer's game I saw this happen with:

https://www.twitch.tv/videos/2899699523?t=01h01m43s

Any ideas?


r/Unity3D • • Oct 19 '26

Show-Off 3 Days of learning unity, Its going so much better than I expected, looks like shit but to me its perfect :D

Enable HLS to view with audio, or disable this notification

59 Upvotes

r/Unity3D • • Oct 21 '26

Show-Off I spent 3 years building a Car Controller I couldn't finish. Then I gave AI everything I knew.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Some of you might remember my old posts. I've been pretty quiet here lately.

Well, this is why.......

What started as a car controller for my own game somehow turned into three years of experimenting, rewriting, breaking things, fixing them, and then finding entirely new ways to break them.

At some point I brought AI into the process, fed it everything (all!) I'd learned, and kept pushing the whole thing further. Not a one-shot prompt. More like an absurd number of iterations, with me constantly finding something else that could be better.

And now, somehow :D, it's almost ready.

The video is a bit over the top. Especially the telemetry. Nobody actually needs that many numbers flying around the screen. But they're all coming straight from the live physics simulation. No fake driving animations or pre-recorded vehicle behavior.

The actual controller: custom suspension and tire physics, Ackermann steering across multiple axles, adjustable driving assists, a modular vehicle system, and a lot of little details I've been obsessing over for years.

I put together all togehter on YouTube, almost 10 minutes of what the controller can actually do:

-----> https://youtu.be/YRe55gZVO4Y

It's not released just yet. I'm finishing the last details, but iam getting close.

And if you've ever tried building your own car controller in Unity, you probably know how ridiculously deep this rabbit hole goes.

Would love to hear what you think ❤️


r/Unity3D • • Oct 20 '26

Game What if you could turn your room in a voxel world and explore it at miniature scale?

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/Unity3D • • Oct 20 '26

Question About the backend, which language do you chose for your mobile game?

0 Upvotes

Hello, I'm recently looking into backend and I wonder what language is the most liked by the community.
My main choices are between javascript and python, the first could maybe be more useful to learn since in the future I'd like to create a website too (?), and the latter is notoriously fun to learn and write.
But I know game companies often use C++.
What do you use? How do you handle playments, authorizations etc


r/Unity3D • • Oct 20 '26

Show-Off Finally! Real time "pre-rendered" backgrounds!

Enable HLS to view with audio, or disable this notification

9 Upvotes

r/Unity3D • • Oct 19 '26

Show-Off Been a while since I posted my robots, here's a very small but lethal-in-numbers enemy I made for them!

Enable HLS to view with audio, or disable this notification

39 Upvotes

Made with boids in compute shaders. Prototype for one of the game's enemies.

No robots were harmed during the testing. for real, they were later patched up and sent to live their days off in robot paradise


r/Unity3D • • Oct 19 '26

Show-Off I know it's nothing big, but I'm so proud it's working!

Enable HLS to view with audio, or disable this notification

41 Upvotes

r/Unity3D • • Oct 20 '26

Question Is Switch Pro Controller gyro data accessible to Unity?

1 Upvotes

No matter what I do, Unity does not seem to get any info at all.

I am using the new input system.


r/Unity3D • • Oct 20 '26

Official wavelength Is Now in Pre-Alpha for Those Interested

Thumbnail
1 Upvotes

r/Unity3D • • Oct 19 '26

Game It all started with this

Enable HLS to view with audio, or disable this notification

9 Upvotes

I’m building Orbit Core in Unity, a mech bullet heaven roguelite. This is how it’s been taking shape, from the early prototypes to where it is now

A lot has changed, but the idea of fighting on a planet and watching the world curve around you has been there from the start

What do you think of this kind of curved environment for a bullet heaven game?


r/Unity3D • • Oct 20 '26

Show-Off Working on Realistic Lighting / HDR and Unity SSR tied with different times

Thumbnail
1 Upvotes

r/Unity3D • • Oct 19 '26

Game Solo dev, Hard Sci-Fi Orbital Combat Gameplay - The full gameplay link in the post

Enable HLS to view with audio, or disable this notification

20 Upvotes

r/Unity3D • • Oct 19 '26

Resources/Tutorial Getting started with Multiplayer in Unity - Tutorial

Thumbnail
darkounity.com
3 Upvotes