Everyday Unity – Telegram
Everyday Unity
1.11K subscribers
157 photos
59 videos
42 files
2.36K links
A game developer and tech lead in a top grossing company posting Unity, programming, and gamedev related stuff that I find interesting
Website: https://gamedev.center

Most used tags are:
#performance
#shader
#interview

Author: @alexmtr
Download Telegram
Here is a very simple way to customize blank inspector.
Just make your ScriptableObject an active selection when nothing is selected. And provide a custom editor for it.

#editortool #tip
👍3
How To Write A Custom URP Shader With DOTS Instancing Support

I wanted to enhance the look of my boids BatchRendererGroup sample with more suitable meshes instead of cubes. For that I decided to use a custom shader with some simple procedural vertex animation. Without proper documentation available it took me quite a while to figure out how to add DOTS instancing support to it, since it's required for BRG. So I am sharing the solution so you don’t have to spend your time.

https://gamedev.center/how-to-write-a-custom-urp-shader-with-dots-instancing-support/

#instancing #dots #brg #shader #rendering
👍3
Game Maths — Dot Product

Personally I don't implement stuff that requires deep math knowledge in a day-to-day work, but once in a while every game developer faces tasks when you wish you knew the math. And this task could be solved faster and without dirty workarounds if you knew the math behind the required functionality. This post gives one example of a dot product usage, but I liked more another old article on this topic, which I will share here next. So check out both to get better understanding.

https://medium.com/nerd-for-tech/game-maths-dot-product-d3f063192cd6

#math #dotproduct #3dmath
👍4
Shader Tutorial: SDFs

How to create unlit 2d shapes using SDF functions

https://www.patreon.com/posts/64440772

#sdf #shader
👍3
Customize your memory use with Unity 2021 LTS | Unity Blog

Unity has different ways to allocate native memory, two of them are:
The bucket allocator, which groups small allocations of similar sizes into shared blocks of memory. It’s generally very fast and widely used, but it has a hard coded limit to how big it can grow.
There is also a dynamic heap allocator which is slower, but handles more cases.
Ori developers needed better performance on Switch and modification of the bucket allocator size helped them reach stutter free gameplay. At that time it wasn't accessible to everyone and required source code modification. Starting from 2021 LTS it became customizable.

https://blog.unity.com/technology/customize-your-memory-use-with-unity-2021-lts

#memory #optimization
👍2
My take on shaders: Stylized water shader – Harry Alisavakis

A very detailed denoscription of a stylized water shader with foam and ripples

https://halisavakis.com/my-take-on-shaders-stylized-water-shader/

#shader #water #ripples
👍3
Selection Groups - a package made by Unity that provides a more convenient workflow in the editor by allowing to group a number of GameObjects under a common name.
This way, we can do operations on these groups, instead of individual GameObjects.

https://github.com/Unity-Technologies/com.unity.selection-groups

#editortools #selectiongroups
👍2