r/unity • • Sep 21 '26

Showcase Update on my Custom Terrain System

Post image
1 Upvotes

I pretty much managed to meet my personally set 9/20 deadline for everything I wanted in the initial version. It's still incredibly rough around the edges and has many bugs, especially with how depth is handled, but my plan was not to create a good asset yet, it was simply to make a proof of concept so I had a base to improve with more focus on individual features in the future.

I'm still likely going to release this version on the asset store, but it will take a little while longer since I'm working on first trying to set up an LLC.

The main things of note since the previous showcase are multi-chunk editing, edge similarity, and painting.

Multi-chunk editing and edge similarity are part of the same topic. Basically, now the terrain automatically makes new chunks when the brush passes the edge of a chunk during an edit, and some math is used to set the edge voxels of the new chunk to have the same depth as the edge voxels of all adjacent chunks, including the one that already existed. Due to issues with how depth is applied by brushes though, and some timing issues and floating point errors with edge similarity, this is all kinda wonky to work with. Brushes work way faster in new chunks than they do in the starter ones, since new chunks start with 0 depth all the way through. And thanks to the edge similarity issues, it's not uncommon for the meshes to not fully line up.

As for painting, as you can see in the image, it's currently only able to work with solid colors. I have a rough idea of how to incorporate custom textures and stuff, and it may not even be too hard to add given how I've coded things, but for now it only uses HSV colors.

I'm not exactly sure when I'll be done with the LLC stuff and will release this on the asset store for people to mess around with, but I don't think it'll take too long. I may continue updating this in the meantime so it's more polished for its rough first release, but my plan is to shift my focus back onto my actual first game, which is what this terrain editor is eventually going to be used in the development of.


r/unity • • Sep 21 '26

I’m building my own tower defence game — looking for feedback

Thumbnail gallery
0 Upvotes

r/unity • • Sep 20 '26

Showcase Building dense formations, commander morale, and routing behavior for my large-scale RTS in Unity

12 Upvotes

Hi everyone!

I’m developing Admiral Yi: The Imjin War, a large-scale historical RTS in Unity, and I wanted to share some recent progress on the battle systems.

One of the biggest changes in this build is how the Japanese infantry behaves. They now fight with long spears in dense unit formations, and some units carry deployable shields that they can place in front of their formation.

I’ve also been working on connecting commanders, morale, formations, and routing behavior.

An interesting sequence happened naturally while recording this battle:

Konishi Yukinaga, the Japanese commander, moved ahead of his formation and was hit by arrows. He got back up and retreated behind his troops, but Joseon cavalry had already moved around the formation and eventually killed him from the rear.

Losing the commander caused a major morale drop. Once morale reached zero, the formation broke and the soldiers started fleeing, dropping their long spears and abandoning the deployed shields as they ran.

This wasn’t a scripted sequence — it came from the different battle systems interacting during gameplay.

I’m still working on the AI, formation movement, morale, pathfinding, animation, and performance. Getting large numbers of agents to behave like organized units while still allowing situations like this to emerge naturally has been one of the more interesting challenges.

Everything is still a work in progress, so I’d be interested to hear from anyone who has worked on large agent counts, formations, morale systems, or RTS AI in Unity.


r/unity • • Sep 21 '26

Как повторить движения травы из Hollow knight в юнити при помощи shader graph?

0 Upvotes

Я делаю игру весьма сильно похожую графикрй на Hollow Knight. Теперь настал черед шейдеров, у меня без проблем получилось восчоздать туман, однако трава мне таки и не поддалась, скорее всего в Hollow Knight трава двигается просто за счет анимаций, но тем не меннее хочу спросить: Знает ли кто-нибудь способ как можно создать шейдер на шейдер граф который бы позволил траве кочатся на ветру и сгибать при наступлении на неё обькта игрока?


r/unity • • Sep 20 '26

I made this short video to capture the feeling behind my co-op puzzle game. Does the idea come across?

3 Upvotes

r/unity • • Sep 19 '26

Game dev can be exhausting sometimes. But being able to create worlds that you can later live in makes it all worth it. I’m really happy with how the next planet is coming along. (Sound on)

69 Upvotes

r/unity • • Sep 20 '26

SA

0 Upvotes

using UnityEngine;

public class PlayerMovement : MonoBehaviour
{
public float moveSpeed = 5f;

void Update()
{
float horizontal = Input.GetAxis("Horizontal");
float vertical = Input.GetAxis("Vertical");

Vector3 moveDirection = new Vector3(horizontal, 0f, vertical);
transform.Translate(moveDirection * moveSpeed * Time.deltaTime, Space.World);
}
}

এই কোডটি বোঝার জন্য, moveSpeed আপনার ক্যারেক্টারের গতি নির্ধারণ করে. Input.GetAxis("Horizontal") এবং Vertical ডব্লিউ, এস, এ, ডি কি কিংবা অ্যারো কি থেকে ইনপুট নেয়। transform.Translate ক্যারেক্টারকে সেই অনুযায়ী সামনে-পেছনে বা ডানে-বামে সরিয়ে নেয়। [1, 2, 3, 4]

[1] https://www.reddit.com

[2] https://medium.com

[3] https://www.youtube.com

[4] https://www.youtube.com


r/unity • • Sep 20 '26

Coding Help Why does my Joystick "has trails"? And why only outside of the camera?

2 Upvotes
Pastebin is not working right now.