r/UnityHelp • • Jun 05 '25

I'm at my wits end. for the past 10 hours ive tried different export settings, ive tried reversing the roll, this is the old industry standard autodesk biped, but unity humanoid rig keeps completely screwing up the rotations on my fingers and ONLY my fingers.

2 Upvotes

screenshot of unity vs. how the bones are CORRECTLY behaving in Blender. i can provide fbxs, more screenshots, unity projects, i dont care. i just need to know why this is happening.


r/UnityHelp • • Jun 03 '25

UNITY Wheels spinning around another axis instead of their own.

1 Upvotes

Hi, I followed this video for a car controller

https://www.youtube.com/watch?v=DU-yminXEX0

but I have no idea why the wheels seem to be spinning around another axis instead of their own.


r/UnityHelp • • Jun 03 '25

PROGRAMMING Weird bands when sampling probe volume from shader graph

Thumbnail
gallery
2 Upvotes

They only appear on the left side of the screen. I've checked most of the coordinates (screen space, world space, and world dir) and they looked fine to me.

I'm using this custom function to read the probes:

(note I have an input for a gradient to control how the light falloff looks, but I've commented that out because sampling it's unrelated to the bug)

//in the graph the world position is from Position node set to world space
//normalWS is from converting normal map from tanget to world space with Transform node
void CalcLights_float(float3 worldPos, float3 normalWS, Gradient lightGrad,
    out float3 Col)
{
    //avoid compile error
#ifdef SHADERGRAPH_PREVIEW
    // half lambert
    float strength = (dot(normalWS,normalize(float3(1.0,1.0,0.0))) + 1.0) * 0.5;
    Col = float3(1.0,1.0,1.0) * strength;
#else


    //get coords
    float3 viewDir = GetWorldSpaceNormalizeViewDir(worldPos);
    float2 clipSpace = TransformWorldToHClip(worldPos);
    float2 screenSpace = GetNormalizedScreenSpaceUV(clipSpace);


    //read vertex then pixel values
    //functions can be found in Packages/com.unity.render-pipelines.universal/ShaderLibrary/GlobalIllumination.hlsl
    half3 vertexValue = SampleProbeSHVertex(worldPos,normalWS,viewDir);
    half3 pixelValue = SampleProbeVolumePixel(vertexValue,worldPos,normalWS,viewDir,screenSpace);


    //map strength to gradient for finer control later
    // float lightVal = sampleGradient(lightGrad,saturate(length(pixelValue)));
    // pixelValue = normalize(pixelValue) * lightVal;

    Col = pixelValue;
#endif

}

r/UnityHelp • • Jun 02 '25

How can I make movement more fluid with character controller?

4 Upvotes

I've been using a character controller for this prototype but the movement feels very clanky (albeit responsive) but I would like if it very quickly sped up when a movement button is pressed to allow for very small inputs. How would I go about this? I think it's something similar that's causing the player to fall very quickly (if they have not just jumped), though it's probably to do with the way I'm handling slopes (but the same thing happens if you fall off the edge).

using System;

using Unity.VisualScripting;

using UnityEngine;

public class Movement : MonoBehaviour

{

public float moveSpeed = 10f; // Movement Speed

public float jumpForce = 4f; // Jump Strength

public float gravity = 9.81f; // Gravity Strength

public float airDrag = 0.5f; // Air Drag for slowing in air

public float airAcceleration = 8f; // Speed for controlling air movement

private CharacterController cc;

private float verticalVelocity; // Vertical velocity

private Vector3 airVelocity = Vector3.zero; // Velocity while in the air

private Vector3 horizontalAirVel = Vector3.zero; // Horizontal velocity while in the air

private Vector3 dashDir = Vector3.zero; // Direction of dash

private Vector3 slideDir = Vector3.zero; // Direction of slide

public float dashSpeed = 5f; // Speed of dash

private bool isDashing = false; // Check if currently dashing

public float dashTime = 0.15f; // Duration of dash

private float dashTimer = 0f; // Timer for duration of dash

public float dashRec = 1f; // Recovery time to regain 1 dash

private float dashRecTimer = 0f; // Timer for dash recovery

public float dashNumMax = 3f; // Maximum number of dashes available

private float dashNum = 3f; // Current number of dashes

public float dashDampener = 0.4f; // Dampening effect after dash

private bool wantsJump = false; // Check if player wants to jump

public float jumpWriggle = 0.15f; // Amount of time before jump that jump input can be registered

private float jumpWriggleTimer = 0f; // Timer for jump wriggle

public float coyoteTime = 0.15f; // Time after leaving ground that player can still jump

private float coyoteTimer = 0f; // Timer for coyote time

public float jumpNumMax = 1f; // Number of jumps available

private float jumpNum = 1f; // Current number of jumps available

private bool isGrounding = false; // Check if player is ground slamming

private bool groundOver = false; // Check if ground slam has finished

public float groundCool = 0.1f; // Cooldown time after ground slam before moving again

private float groundCoolTimer = 0f; // Timer for how long you cannot move for after ground slam

private bool isSliding = false; // Check if player is sliding

Vector3 inputDir = Vector3.zero; // Input direction for movement

Vector3 move = Vector3.zero; // Movement vector

void Start()

{

cc = GetComponent<CharacterController>();

dashNum = dashNumMax;

jumpNum = jumpNumMax;

}

void Update()

{

float horizontal = Input.GetAxisRaw("Horizontal");

float vertical = Input.GetAxisRaw("Vertical");

inputDir = (transform.right * horizontal + transform.forward * vertical);

move = inputDir.normalized * moveSpeed;

if (Input.GetButtonDown("Jump"))

{

wantsJump = true;

}

if (wantsJump == true)

{

jumpWriggleTimer += Time.deltaTime;

if (jumpWriggleTimer > jumpWriggle)

{

jumpWriggleTimer = 0f;

wantsJump = false;

}

}

DashHandler();

GroundSlamHandler();

SlideHandler();

if (wantsJump && coyoteTimer < coyoteTime && jumpNum >= 1)

{

jumpNum -= 1;

verticalVelocity = Mathf.Sqrt(jumpForce * 2 * gravity);

airVelocity = move;

horizontalAirVel = new Vector3(airVelocity.x, 0, airVelocity.z);

}

else if (cc.isGrounded)

{

jumpNum = jumpNumMax;

coyoteTimer = 0f;

if (isGrounding)

{

isGrounding = false;

groundOver = true;

}

airVelocity = move;

if (verticalVelocity < 0)

verticalVelocity = -gravity * 1.5f;

}

else if (!isDashing && !isGrounding)

{

coyoteTimer += Time.deltaTime;

if (Physics.Raycast(Vector3.zero, Vector3.down, 0.1f))

verticalVelocity = -gravity * 5f; // If ground is close increase downward velocity to improve slope movement

else if (verticalVelocity < -2f)

verticalVelocity -= (gravity * 1.8f) * Time.deltaTime;

else

verticalVelocity -= gravity * Time.deltaTime;

if (inputDir.sqrMagnitude > 0.01f)

{

Vector3 desiredVel = inputDir.normalized * moveSpeed;

horizontalAirVel = Vector3.MoveTowards(horizontalAirVel, desiredVel, airAcceleration * Time.deltaTime);

}

else

{

horizontalAirVel = Vector3.MoveTowards(horizontalAirVel, Vector3.zero, airDrag * Time.deltaTime);

}

airVelocity.x = horizontalAirVel.x;

airVelocity.z = horizontalAirVel.z;

move = airVelocity;

}

move.y = verticalVelocity;

cc.Move(move * Time.deltaTime);

Debug.Log(jumpNum);

}

void DashHandler ()

{

int dashesRecovered = Mathf.FloorToInt((dashRec * dashNumMax - dashRecTimer) / dashRec);

dashNum = Mathf.Clamp(dashesRecovered, 0, (int)dashNumMax);

if (Input.GetKeyDown(KeyCode.LeftShift) && dashNum >= 1 && dashNum <= dashNumMax)

{

verticalVelocity = 0f;

if (inputDir.sqrMagnitude > 0.01f)

{

dashDir = inputDir.normalized * dashSpeed * 5f;

}

else

{

dashDir = transform.forward * dashSpeed * 5f;

}

isDashing = true;

dashNum -= 1;

dashRecTimer += 1f;

move = dashDir;

horizontalAirVel = new Vector3(dashDir.x, 0f, dashDir.z);

airVelocity = dashDir;

}

else if (isDashing)

{

if (dashTimer > dashTime)

{

isDashing = false;

dashTimer = 0f;

dashDir = dashDir * dashDampener;

move = dashDir;

airVelocity = dashDir;

horizontalAirVel = new Vector3(dashDir.x, 0f, dashDir.z);

}

else if (wantsJump && dashNum > 0)

{

isDashing = false;

dashTimer = 0f;

move = dashDir;

verticalVelocity = Mathf.Sqrt(jumpForce * 2 * gravity);

airVelocity = move;

horizontalAirVel = new Vector3(airVelocity.x, 0, airVelocity.z);

}

else

{

dashTimer += Time.deltaTime;

verticalVelocity = 0f;

isDashing = true;

move = dashDir;

}

}

if (dashRecTimer > 0 && !isDashing)

dashRecTimer -= Time.deltaTime;

else if (isDashing)

dashRecTimer = dashRecTimer;

else

dashRecTimer = 0f;

}

void GroundSlamHandler()

{

if (Input.GetKeyDown(KeyCode.LeftControl) && !cc.isGrounded)

{

isGrounding = true;

verticalVelocity = -gravity * 5f;

move = Vector3.zero;

}

else if (isGrounding && !cc.isGrounded)

{

isGrounding = true;

verticalVelocity = -gravity * 5f;

move = Vector3.zero;

}

if (groundOver)

{

groundCoolTimer += Time.deltaTime;

if (groundCoolTimer >= groundCool)

{

groundOver = false;

groundCoolTimer = 0f;

}

else if (!cc.isGrounded)

{

}

else

{

move.x = 0f;

move.y = 0f;

}

}

}

void SlideHandler()

{

if (cc.isGrounded && !isGrounding && !isDashing && Input.GetKeyDown(KeyCode.LeftControl))

{

if (inputDir.sqrMagnitude > 0.01f)

{

slideDir = move * 1.5f;

}

else

{

slideDir = transform.forward * moveSpeed * 1.5f;

}

isSliding = true;

move = dashDir;

horizontalAirVel = new Vector3(slideDir.x, 0f, slideDir.z);

airVelocity = slideDir;

}

else if (isSliding == true)

{

if (wantsJump)

{

isSliding = false;

verticalVelocity = Mathf.Sqrt(jumpForce * 2 * gravity);

airVelocity = move;

horizontalAirVel = new Vector3(airVelocity.x, 0, airVelocity.z);

}

else if (Input.GetKeyUp(KeyCode.LeftControl))

{

isSliding = false;

}

else

{

move = slideDir;

}

}

}

}

// To do List:

// - Fix counting jumpNum when jumpNum > 1

// - Add wall jump

// - Fix slopes

// - Make movement speed up rather than being constant


r/UnityHelp • • Jun 01 '25

How to fix Unity UI List lag on Android? (RecyclerView alternative?)

Thumbnail reddit.com
1 Upvotes

r/UnityHelp • • Jun 01 '25

PROGRAMMING EasyCS Framework: Helps you to improve your Unity workflow!

Post image
0 Upvotes

Hey Unity devs,

I'm releasing EasyCS, a modular Entity-Component-Framework (ECF) for Unity - now at version v1.1.1.
I built EasyCS for myself, to structure the gameplay systems in the games I’m developing.
Now I’m open-sourcing it.

💡 What is EasyCS?

EasyCS is not another ECS clone, and it’s definitely not about chasing maximum performance benchmarks.

Entity-Component-Framework (ECF) offers structure, modularity, and separation of concerns - without forcing you to abandon MonoBehaviours or rewrite your entire codebase.

Unlike traditional ECS (where logic lives in global systems and entities are just IDs), ECF lets you:

  • 🔧 Define logic and data directly inside modular components
  • 🧩 Instantiate and configure entities via Unity prefabs
  • 📦 Leverage ScriptableObjects for templates and injection
  • 🧠 Use TriInspector to power an editor-friendly development experience

You still get the clarity and reusability of ECS - but with a shallower learning curve, full compatibility with Unity's ecosystem, and no mental gymnastics required.

Compare with standard Unity-approach: https://github.com/Watcher3056/EasyCS?tab=readme-ov-file#-framework-comparison-table

⚡️ Key benefits

  • ✅ Plug-and-play: Works in new AND mid-projects without total refactor
  • ✅ Optional DI support: Compatible with Zenject / VContainer
  • ✅ Prefab + ScriptableObject-based workflows
  • ✅ Editor-friendly tools with validation, nesting, visualization
  • ✅ Declarative data injection, no manual reference wiring
  • ✅ Loop-friendly architecture with native data access
  • ✅ MonoBehaviour reuse is fully supported — no rewriting needed
  • ✅ Easy conversion from existing MonoBehaviour-based systems

🧠 What it’s not

EasyCS isn’t built to compete with ECS in raw performance — and I won’t pretend it is.
If you’re simulating hundreds of thousands of entities per frame, use DOTS or custom ECS.
EasyCS gives you developer power, not raw throughput.

Performance is decent, but there’s still a lot of optimization work to do.

This framework is for:

  • Developers who want clean architecture without rewriting everything
  • Games that need structure, not simulation-scale optimization
  • Projects where editor tooling, prefab workflows, and iteration speed matter

🔗 Links

If you’re tired of MonoBehaviour chaos or ECS overkill — this might be what you’ve been looking for.

Would love to hear your thoughts — questions, critiques, suggestions, or even use cases you're tackling.
Feedback is fuel. 🔧🧠

I built it for my games.
Maybe it’ll help with yours.


r/UnityHelp • • May 31 '25

UNITY Trying to make character movement through C#

Post image
1 Upvotes
Does anyone know how to solve this ? Thanks.

r/UnityHelp • • May 30 '25

Grabber works perfectly until I try to grab something

8 Upvotes

The claw is the child of the arm piece it's connected to, which is being pulled by an invisible game object following the mouse.

Please tell me if there is a better way to do this or if I could add to it.

I'd really like it to function/move the same, it just need to be able to grab and throw stuff.

I'm not too sure what info to include so ask anything.


r/UnityHelp • • May 31 '25

UNITY Roll easing back to "upright" Z rotation

1 Upvotes

Hi all,

I'm trying to make a flight game where you ride on a hoverboard, for Unity3D. I currently have rotation in all directions as a game feature, allowing you very free-form flight. The problem I am experiencing is having the "roll" of the character return to upright after making a turn.

I have been struggling to use Quaternion and EulerAngle rotations to have a persistent, smooth easing back to upright. The easing shouldn't apply when dipping the nose at too steep an angle like diving or climbing sharply.

I have tried to use the current Z axis angle from transform.eulerAngles.z, but I run into issues with the "perceived" angle and how the Z rotation is measured in degrees, where it will suddenly flip 90degrees causing weird behavior.

Any help would be greatly appreciated!


r/UnityHelp • • May 30 '25

UNITY My map is too large and the player is too small

1 Upvotes

So, for an assignment, I had to make a museum to showcase stuff. I started off making the map, but when I added the player character, the map is too big that walking across a room takes minutes, let alone exploring the place.

Is there a way to shrink the house, or make the player bigger so that I can roam around the house in normal speed?


r/UnityHelp • • May 29 '25

BUTTON DON'T WORK

2 Upvotes
I cant click the continue button . Has anyone have any suggestions about what can I do ?