r/Unity3D – Telegram
r/Unity3D
259 subscribers
12.6K photos
15.5K videos
14 files
47.8K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
Im new to unity and im having some problems on the TImeline
https://youtu.be/-tC9hIuYfHI

https://redd.it/1k7i094
@r_Unity3D
Memory usage grow even if I do nothing. How correct it ?

Hello,

When I run the build of my game and see the task manager, I see that my game allocate more and more memory even if I do nothing.
How can I found where is the issue in my code ? Are there any tools that exist to see memory utilization and the amount of memory that the noscript allocates ?

https://redd.it/1k7key1
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Would you play my 3-players cooperative extraction RPG?

https://redd.it/1k7m9gr
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Instant Track Design by Driving – My Method for Maximizing Car Limits

https://redd.it/1k7mdad
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
I spent 4 months reworking every shader in my Unity game. Here’s the before/after!
https://redd.it/1k7n4e3
@r_Unity3D
Changing default Player to downloaded asset

Good day everyone! just starting unity 2d, created a template called "2d platformer game" or something like this. My problem is that i want to change the default Player "skin" to Player i downloaded from official unity assests, when i imported this asset in my project i saw folders like "player-jump, player-idle" etcetera, how can i change my Player from that defaul template to the one i downloaded from assets? Will appreciate any help!

https://redd.it/1k7rala
@r_Unity3D
Cloning Git Repo Suddenly Stopped Working

Hi there!

Build Automation suddenly fails to clone our repo from GitHub since April 16, 2025. It was working perfectly before then.

I already tried refreshing the SSH key, removed submodules, and clean builds.

Here's the log (only got the last part since it restarts the steps)

[2025-04-19T17:28:26.613Z] - 7.6.5.3.3.5 - INFO: Attempt 5 of 5 to clone repository.
[2025-04-19T17:28:28.220Z] - 7.6.5.3.3.5 - INFO: Fetched remote changes for Unity-Cloud-Build in 1 seconds.
[2025-04-19T17:28:49.205Z] - 7.6.5.3.3.5 - INFO: Finished force clean of repo in 20 seconds.
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/git-2.3.2/lib/git/command_line.rb:348:in block in process_result' <internal:kernel>:90:in tap’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/git-2.3.2/lib/git/command_line.rb:345:in process_result' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/git-2.3.2/lib/git/command_line.rb:198:in run’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/git-2.3.2/lib/git/lib.rb:1625:in command' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/git/git_lib.rb:21:in stash’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/git/git_lib.rb:60:in stash' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/git/checkout.rb:56:in checkout_existing_remote’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:93:in checkout_existing_remote' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:76:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:59:in clone' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/****_scm.rb:48:in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/source_control_manager.rb:31:in checkout' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/cli.rb:60:in block (2 levels) in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/utils/timing.rb:27:in wrap' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/cli.rb:59:in block in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/utils/timing.rb:27:in wrap' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/cli.rb:45:in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor/command.rb:27:in run' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor/invocation.rb:126:in invoke_command’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor.rb:369:in dispatch' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor/base.rb:444:in start’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/bin/source-control:11:in <main>' [error]
[2025-04-19T17:29:31.194Z] - 7.6.5.3.3.5 - ERROR: GIT PAT: Error during checkout: Exceeded maximum retries for git ! checkout failed. Exceeded maximum retries for git /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:65:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:84:in rescue in clone_with_retry' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/checkout.rb:68:in clone_with_retry’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers//checkout.rb:59:in clone' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/managers/****/****_scm.rb:48:in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/source_control_manager.rb:31:in checkout' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/cli.rb:60:in block (2 levels) in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/utils/timing.rb:27:in wrap' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/cli.rb:59:in block in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/utils/timing.rb:27:in wrap' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/lib/source-control/cli.rb:45:in checkout’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor/command.rb:27:in run' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor/invocation.rb:126:in invoke_command’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor.rb:369:in dispatch' /home/buildbot/.rvm/gems/ruby-3.3.5/gems/thor-0.19.4/lib/thor/base.rb:444:in start’
/home/buildbot/.rvm/gems/ruby-3.3.5/gems/bvr-7.6.5.3.3.5/bin/source-control:11:in `’
Build failed. Please check the log for further details.
Using /home/buildbot/.rvm/gems/ruby-3.3.5
[2025-04-19T17:29:57.788Z] - 7.6.5.3.3.5 - INFO: postbuildsteps finished successfully
[2025-04-19T17:30:08.354Z] - 7.6.5.3.3.5 - INFO: postbuildstatus finished successfully.
[error] Finished: FAILURE


Thank you in advance for any help.

Crossposting the same question in the [discussions forum](https://discussions.unity.com/t/cloning-git-repo-suddenly-stopped-working/1632268).

https://redd.it/1k7st04
@r_Unity3D
should I get a visual coding software?

Hey, so I'm just a teenager coming from making some roblox games, I'm just recently getting into Unity and C# coding. I want to make a game but I don't know if I should go out of my way and learn C# in Unity or if a visual coding extension will suffice. Right now, I want to play around with Unity and the sort of systems I can make with it. My project will be a semi-open world 2d fighting game, based on bosses, my inspiration is Hollow Knight and Nine Sols, although with much less metroidvania-like gameplay. My biggest concern is the systems, I want to make some semi-complex combo systems going down that use environmental factors, different weapons and use the point of view and stage bounds differently, so I'm thinking if any visual coding extension can do these things. My fighting game inspiration is tekken, if you are familiar with it's combo system you will know what I mean when I ask if I should use visual coding software. Sorry for the rant, but know that I am already designing stages and characters, so I am putting a commitment into drawing, which I'm getting better at, which is the reason I'm debating on using visual coding software. Thanks.

https://redd.it/1k7tttl
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Quick overview of some procedurally generated chunks. The first are just basic examples and it gets more complex over time.
https://redd.it/1k7rxj4
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
I got bored and made a third person character like in Resident Evil games

https://redd.it/1k7vcr0
@r_Unity3D
Stamina Bar

I started learning Unity yesterday and I'm working on implementing a stamina bar to my project. Here is a link to a video of what I have so far. Code:

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.UI;



public class PlayerMovement : MonoBehaviour

{

// Start is called before the first frame update



public float moveSpeed;

public Rigidbody2D rb;

private Vector2 moveDirection;





[SerializeField] private TrailRenderer tr;



[SerializeField] float dashSpeed = 10f;

[SerializeField] float dashDuration = 1f;

[SerializeField] float dashCooldown = 1f;

[SerializeField] bool isDashing = false;



public Image StaminaBar;

public float stamina, maxStamina;

public float dashCost;

public bool canDash;



private float chargeRate;

private Coroutine recharge;





// Update is called once per frame

void Update()

{



if (isDashing)

{

return;

}

ProcessInputs();

if (Input.GetKeyDown(KeyCode.Space))

{

StartCoroutine(Dash());

}





}

private void FixedUpdate()

{

if (isDashing)

{

return;

}



Move();

}

void ProcessInputs()

{

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

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

moveDirection = new Vector2(movex, movey).normalized;

}

private void Move()

{



rb.velocity = new Vector2(moveDirection.x * moveSpeed, moveDirection.y * moveSpeed);

}

private IEnumerator Dash()

{

isDashing = true;

stamina -= dashCost;

if(stamina < 0)

stamina = 0;

StaminaBar.fillAmount = stamina / maxStamina;

rb.velocity = new Vector2(moveDirection.x * dashSpeed, moveDirection.y * dashSpeed);

tr.emitting = true;

yield return new WaitForSeconds(dashDuration);

tr.emitting = false;

isDashing = false;

if (recharge != null)

{

StopCoroutine(recharge);

recharge = StartCoroutine(RechargeStamina());

}

}

private IEnumerator RechargeStamina()

{

yield return new WaitForSeconds(1f);

while(stamina < maxStamina)

{

stamina += chargeRate / 10f;

if(stamina > maxStamina)

stamina = maxStamina;

StaminaBar.fillAmount = stamina / maxStamina;

yield return new WaitForSeconds(.1f);

}

}

}

As you can see in the video, the player dashes correctly, and stamina is drained, but it doesn't refill. I feel like I'm missing something obvious but idk what.

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