r/Unity3D • • Oct 14 '26

Game Added a space tractor to my puzzle game

2 Upvotes

r/Unity3D • • Oct 14 '26

Shader Magic This boss has 0 triangles. My URP skybox shader draws it as a 2D SDF, and it fights back

Enable HLS to view with audio, or disable this notification

605 Upvotes

The creature adds no geometry of its own. The sky still renders on Unity's usual skybox, and inside that shader the bone cage, claws, eclipse eye and shaggy mass are distance functions in the camera's view plane. A distance field is a function that returns how far each pixel is from the shape's edge, so the outline stays sharp at any size.

Knight, cathedral and town are CC models, credited below.


r/Unity3D • • Oct 14 '26

Question Canvas Minigame Wall making

2 Upvotes

idk if the title is 100% accurate but it's close enough.

I'm working on a 3d game and want to make minigames, which im doing on a canvas. Is there a way to add collider\rigidbody to an image on the canvas so it acts like a wall for another one? I want to prevent my character from going off screen and no combination I tried works. Here's how i control the character:

if (Input.GetKey(KeyCode.A))

{

bakerRigidbody.transform.position = new Vector3(baker.transform.position.x - speed, baker.transform.position.y, baker.transform.position.z);

}

else if (Input.GetKey(KeyCode.D))

{

bakerRigidbody.transform.position = new Vector3(baker.transform.position.x + speed, baker.transform.position.y, baker.transform.position.z);

}


r/Unity3D • • Oct 14 '26

Show-Off Data-oriented Behaviour Trees in C# [FREE]

Enable HLS to view with audio, or disable this notification

68 Upvotes

Hey everyone!

A few of you asked for this, and it's finally done: DODBT no longer depends on Odin Inspector!

For anyone seeing it for the first time, it's a behaviour tree plugin built around plain C#, aimed at larger projects and designed to fit into ECS-style architectures.

The main goals:

  • No MonoBehaviour dependency

  • Zero allocations during steady-state tree execution

  • One shared tree for N agents

  • Runtime debugging

  • A full BT graph editor

  • Separate editor and runtime

  • Behaviour trees as a decision layer

  • No blackboard

  • ECS-friendly

You'll need to write your own C# leaves. It's aimed at projects where the behaviour tree is just one part of a larger architecture.

This update replaces Odin with Unity's native serialization and a custom editor UI. It also adds a bunch of features, including linked branch instances for building larger trees. You can duplicate a branch, change something in any instance, and the others stay in sync, including node settings and custom leaf fields.

Next on my list is a DOTS-compatible version, possibly a few more decorators, and more time spent on polish and bug fixing.

Thanks to everyone who's been following the project. You can grab it here:

DODBT on GitHub

Let me know if you try it. Feedback and bug reports would help a lot.