r/Unity3D – Telegram
r/Unity3D
265 subscribers
12.7K photos
15.6K videos
14 files
48K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
How do you structure your systems?

Do you stack components? Do you have things separated on different children gameobjects? Or do you use noscriptable objects a lot?
For me, I make my game states and systems in different gameobjects. How about you?

https://redd.it/1l0dajj
@r_Unity3D
How can I create a day/night background effect using only one background image in Unity?

I'm making a 2D platformer in Unity with a pixel art background. I want to simulate day and night (including morning/evening) using just one background image, without drawing separate versions for each time of day. What’s the best way to do this? Should I use shaders, lighting, overlays, or some color tinting method? Any simple and performance-friendly approach would be really helpful!

https://redd.it/1l0kw8t
@r_Unity3D
Endless Polishing Nightmare

As a developer, how do you find the line between adding polish to your game & deciding when its appropriate to publish?

When working on some of my projects, I always struggle with adding polish e.g Particle Effects, UI Transitions, Cameras Tweaks. You'll never truly know where is a good point to stop.

I like to think that this endless loop is proof that you care about your game's feel and you want to be proud of what you publish!

https://redd.it/1l0ociq
@r_Unity3D
At Least We're Honest: What’s the best sign you’ve seen in a game?
https://redd.it/1l0ntn9
@r_Unity3D
I updated some parts of my mini blacksmith game Cozy Forge, which was inspired by the blacksmithing stages in the game Jacksmith, based on the feedback I received. I'm curious to hear your thoughts...

https://redd.it/1l0sio2
@r_Unity3D
EasyCS Framework: Created my own Entity-Component framework(not ECS)
https://redd.it/1l0vdje
@r_Unity3D
Orthographic Camera.main.ScreenToWorldPoint() Not Returning Actual World Point

I am attempting to figure out which direction from a player the mouse is in order to move in that direction using the following code, but for some reason it never returns the correct value. I have tried using the default z of 0, the near clip plane of the camera, and the relative z position of the camera. Nothing works. Any ideas on how to fix this issue?

Here is my current code for the function:

private Vector2 GetMovementDirection()

{

Vector2 result;

Vector3 mousePos = Input.mousePosition;

mousePos.z = 10; //Distance camera is from the

Debug.Log($"Mouse position: {Camera.main.ScreenToWorldPoint(mousePos)}, Player position: {transform.position}");

if(settings.toggleData.isMouseModeBossgame)

{

result = (Camera.main.ScreenToWorldPoint(mousePos) - transform.position).normalized;

}

else

{

result = moveInput.normalized;

}

return result;

}

https://redd.it/1l0vthk
@r_Unity3D
Não consigo adicionar sprites no Animator

Boa tarde. Eu estou tendo que fazer um jogo para minha avaliação da faculdade e ate então tudo ocorrendo da melhor forma possível. Criei fiz animações pro meu protagonista como de andar, pular e atacar. Agora eu estou tentando fazer ele ter a animação de dano quando ele encosta em um outro player, porém, me deparei com um problema. Quando eu tentei criar um novo animator, selecionei os sprites e os arrastei para o animator surgiu duas opções "Sprite Rendere" e "HealthSystem"(esse é o nome do código que eu fiz para o sistema de vida), quando eu seleciono a primeira opção nada acontece.

Após hora tentando eu percebi que o problema esta no personagem principal, pois eu consegui adicionar mais sprites no animator do outro player. Alguem poderia me ajudar?

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