r_unity3d | Unsorted

Telegram-канал r_unity3d - r/Unity3D

251

News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).

Subscribe to a channel

r/Unity3D

I added realistic book writing to my game!

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

Читать полностью…

r/Unity3D

Made a Wet Lens Effect for my water simulation.

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

Читать полностью…

r/Unity3D

Bnormal by Xiperius
https://xiperius.itch.io/bnormal

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

Читать полностью…

r/Unity3D

Weird Refraction Artifacts at Intersections Between Transparent Meshes

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

Читать полностью…

r/Unity3D

Stacked outlines, extrude and text animations for TextMeshPro, all in one draw call
https://redd.it/1xx3l5a
@r_Unity3D

Читать полностью…

r/Unity3D

Flame thrower effect after almost 3 days of work.

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

Читать полностью…

r/Unity3D

My pixel-art VFX tool just got its biggest update: 17 ready-to-drop-in effects (sword slashes, lightning, crits, loot beams) + auto pixel cleanup. For Unity. Show-0ff
http://jankybydesign.itch.io/pixelburst-fx

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

Читать полностью…

r/Unity3D

Hi! I'm making a welding horror game, which mechanic is better? What would you add?

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

Читать полностью…

r/Unity3D

This is how I animate my characters. One state called "PlayingAnimation" and a script for setting and starting the animation. There is no transition in the controller. Very easy to add new animations and sequence them.

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

Читать полностью…

r/Unity3D

Silly bug, four layers deep, with the most simple fix possible - STORY TIME

Would like to tell you a story of how I spent my last weekend trying to get to the bottom of a very nasty, and verry silly bug.

Had recently released a new version for my game that included a few new upgrades to purchase, this is a tower survivor game, so it's almost impossible to test every permutation of upgrades and combos. I had been testing a few things and not found anything major whatsoever before release. Anyway players where reporting that their tower suddenly stopped attacking, which was very odd.

I had recently done some very major performance improvements. One of which was a "ProjectileBankSystem". A system that puts and controls the population limit of how many projectiles can be on screen at once. If all slots are filled we "bank" the projectile, and make the next one of the same type double in strength.
My first though was that something about this system had broken, or that a weapon somehow did not release their slot once the projectile expired. After some testing and debugging I could not find anything wrong with banking system. So I decided to move on and look for other clues.

One of the players reporting the issue had also sent a screenshot, and it gave me another clue. The player had some very odd looking stat spreads. The most noteworthy one was their attack speed bonus, which was set to -97%. While it is technically possible to get this low of an attack speed, it was certainly not possible on level 8, while also only having 23% bonus damage.

I have a few upgrades in the game that increases damage, at the expense of attack speed. So for this to be true, the player would need to have at least 15 of those upgrades, which would make their bonus damage be above 200%.

I now at least know the source of the "my tower stopped attacking" report. It didn't technically stop attacking, attacks just took 30 times longer to execute.

After some more careful investigation, I found that the player had POSITIVE damage taken modifiers, which is usually not the case. I present "damage taken" as a negative modifier. Say you purchase 3 Wooden Shields, that grants -2 flat damage, and -5% damage each. That would grant you -6 flat and around -15% damage taken. This player had their damage taken set to POSITIVE 30%. This is where it clicked for me, there's ONE powerup in the entire game that modifies these two stats together, and that's the Tower Upgrade called Magical Shield. Puzzle piece #1 had been found.

\--

Magical Shield
Reduces damage taken by 6
Reduces damage taken by 25%
Stacks: Infinitely
When attacked:
Applied Magic Slow to attacker
Increased damage taken by 10%
Reduces attack speed by 15%

\--

So, by the looks of it, the effect of Magical Slow is somehow being stacked on my Tower, instead of the enemies that attack it. Alright... time for even more investigation and deep diving.

Since Magical Shield is an uppgrade, whith an "When attacked" effect. That means that this effect is being attached to my tower as a blueprint. All effects can be in two states, "active" meaning exactly what it says, it's stats and effects are in play, and are actively being taken into account. The effect can also be in it's "blueprint" mode. Basically meaning that it is on the GameObject, but disabled, and linked inside the "StatusEffectSlot" that I have.

As mentioned, since this is a "When attacked" effect. The blueprint for this effect sits on my tower, under "Retaliation" effects. So I begun looking into the retaliation system, how does it apply effects to attackers, do they target the correct enemy or script layer? My first thought was that my tower was somehow hitting itself. That one of my projectiles have been misconfigured and somehow counted as an enemy projectile. Allowing for this effect to happen. Couldn't really find anything useful, until... a log report came through that I did not quite recognize. All other applications had been "MeleeEnemy#123", "RangedEnemy#555" etc,

Читать полностью…

r/Unity3D

how to start

hi, i dont know how to start this, i just joined this sub.
I have always liked character design and wanted to get into game dev.
My question is, where do i start? what tutorials should i watch and what should i learn first? Ig anyone has any recommendations please let me know!!!!!! i have a background in 2d animation!

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

Читать полностью…

r/Unity3D

Found some remains of my debugging
https://redd.it/1xsrv89
@r_Unity3D

Читать полностью…

r/Unity3D

Made some improvements to our monster's movement based on feedback. How's it looking now?

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

Читать полностью…

r/Unity3D

Added a cat-petting feature to my cat game!

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

Читать полностью…

r/Unity3D

🧙‍♂️ We're making a game where you draw spells. How would you improve the casting experience?
https://www.reddit.com/gallery/1xsjy8p

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

Читать полностью…

r/Unity3D

How I lay out a 2.5D battle in Unity (Scene View vs. game camera)
https://redd.it/1xxmwak
@r_Unity3D

Читать полностью…

r/Unity3D

Testing out a wheel shader idea i had

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

Читать полностью…

r/Unity3D

Pixel art import settings in Unity 2D that fix most blurry or shimmering sprites

I make 2D asset packs and the same import questions keep coming up, so here's the checklist I use.

Filter Mode to Point (no filter), or the sprites come out blurry.

Compression to None. Compressed pixel art gets color bleeding, especially on small sprites.

Pixels Per Unit equal to your tile size (16 for 16x16 tiles) so one tile is one unit and the grid lines up.

Turn off Generate Mip Maps.

Raise Max Size if your sheet is bigger than 2048, otherwise Unity quietly downscales it.

Add the Pixel Perfect Camera component and set the reference resolution to your target. That stops the shimmer when the camera moves.

If you see thin lines between tilemap tiles, pack the tiles in a Sprite Atlas with 2 to 4 px of padding.

For sound, short UI and hit effects work well as WAV with Decompress On Load, and music as OGG with Streaming.

If you want some sprites to test this on, my 2D packs are in a bundle until Nov 30: https://itch.io/s/208799/winter-sale-40-game-asset-packs-for-1999-save-91

Happy to help if something still looks off.

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

Читать полностью…

r/Unity3D

Work, work... Do you like games that need you to do some resources management?
https://redd.it/1xx56mv
@r_Unity3D

Читать полностью…

r/Unity3D

Been tweaking the grappling hook in my game. Thoughts?

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

Читать полностью…

r/Unity3D

SHAPES Demo is OUT!
https://redd.it/1xx3q7k
@r_Unity3D

Читать полностью…

r/Unity3D

Made a tool so my worktrees can share one Unity editor, putting it out there in case it’s useful

I’ve been working on a Unity 6 project with a few git worktrees going at once, mostly with Claude Code and Codex agents working in them. Opening an editor for every worktree was eating all my RAM, so I wrote something that keeps one editor open on the main checkout and lets the other worktrees use it.

The part I use most is live UI reload. If a worktree changes a .uss file, it gets applied to the running game in the main editor (in memory, the main project’s files aren’t touched) and a screenshot comes back. It works for C# view methods too if you tag them for Unity’s Pipeline package. It also has a lock so two agents can’t drive Play mode at the same time, a way to run compile and test checks on a worktree without a second editor, and a small dashboard so I can see which agent is doing what.

It’s pretty rough. It’s Windows only, it’s only been used on my project, and only stylesheets and tagged methods go live; anything else still needs a normal merge. A lot of it was written with Claude Code.

It’s free and MIT licensed if anyone wants to try it or pull bits out of it: https://github.com/Cheesewizard/WorktreeBroker

Happy to answer questions, and if you’re doing something similar I’d like to hear how you’re handling it.

https://i.redd.it/rgvbgv4b3v1i1.gif

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

Читать полностью…

r/Unity3D

Free Textures: Wood Planks & Panels

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

Читать полностью…

r/Unity3D

but now I could clearly see "RangedProjectile#5". Puzzle piece #2.

How the fuck? Why the fuck? Why am I retaliating on a projectile? I thought the bug was me shooting myself?!

So, let's take a closer look at why we're retaliating a projectile, by breaking down all these systems in play here.

So, my Game have a few systems all in play here. We have
Weapons \- that are the main driver behind spawning and targeting different prefabs.
Projectiles \- prefabs with scripts that explain their behaviour, type, and apperance.
StatusEffect \- Buffs and debuffs that can be in two different states; active or blueprint. Projectiles can carry status effects that gets applied when they strike a valid target
Retaliation \- Actions that happen after an object has been struck by a hostile attack.

In normal gameplay, when a Weapon spawns a Projectile the projectile has a reference back to it's original owner. This is in play so that effects such as retaliation targets the enemy, and not the projectile in questions, and so that When attacked effects also work. BUT there's a catch, IF an enemy where to die WHILE a projectile is in motion, the reference get set to the projectile instead. This is an intended design choice, in order to get secondary effects, such as explosions or particle spawning to happen in the correct place. This is an intended mechanic and not something that I would like to change. Here's we found piece #3.

This still does not quite explain WHY we're getting our own effects applied to us. But we're getting awfully close. The last piece, has to do with StausEffects and especially HOW my game handles these. As mentioned, status effects can be in both blueprint and active mode. But, we don't actually differentiate between the two, all status effects have their own lifecycle management and are applied as normal scripts right on the GameObject. They don't really interact with anything other than their controller and themselves. EXCEPT... for projectiles. Since these are designed to carry StatusEffect-blueprints, they have specific code that "picks up" any StatusEffect on themselves. Because, when I made this system way back when... I sometime forgot to assign StatusEffects to my projectiles. So I added a quick component lookup to correct my lazyness. Which is now the source of this entire bug... Piece... #4.

So, here's the full chain,

1. Tower purchase upgrade Magical Shield
2. Ranged enemy send projectile towards the tower. Projectile has a reference to it's owner
3. The enemy is defeated while the projectile is in motion. Projectile updates it's owner to now be itself. Since it's an orphan
4. Projectile hits the tower, retaliation takes effect BEFORE damage, so we run through the entire retaliation flow
5. Retaliation attempts to strike the projectile owner, checks the reference and applies all retaliation effects to said owner. Orphaned projectile now has an active StatusEffect called Magical Slow
6. Retaliation flow completed. Moving on to damage phase.
7. Projectile now deals damage to the tower based on it's stats.
8. Projectile now attempts to apply status effects, if it doesn't find any, my fallback kicks in
9. Fallback runs GetComponent<StatusEffectDefinition>() finds the ACTIVE Magical Slow effect that our retaliation just applied, and passes it along to the tower.

An entire day, debugging, logging, testing, hunting for this elusive bug. And the culprit was just a single line. Written long long ago just because I was lazy and forgetful...

Well at least I got a fun story our of it.
Hope you enjoyed reading my little adventure

tl;dr lazy me, causes chain-reaction with a single GetComponent

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

Читать полностью…

r/Unity3D

is it still considered hard to make online games

Maybe you remember the times when making an online game was a running gag in devlogs about how hard it is but years have passed since then so surely it cant be that hard right?

So is it still considered hard to make online games in unity? (Im not doing a competitive game but rather something similar to gartic phone or codenames to play with friends)

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

Читать полностью…

r/Unity3D

7 things that bit me building an online game with NGO 2.x + Multiplayer Services (Sessions, Relay, Vivox)
https://redd.it/1xsqqgc
@r_Unity3D

Читать полностью…

r/Unity3D

42 Creatures I've created in 2 years!

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

Читать полностью…

r/Unity3D

Your Unity game pays 3-4 MB for UI Toolkit even if you never use it
https://redd.it/1xsn5qz
@r_Unity3D

Читать полностью…

r/Unity3D

Made a terraforming spell system for my magic RPG

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

Читать полностью…

r/Unity3D

Movement using root motion always looks so smooth

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

Читать полностью…
Subscribe to a channel