Everyday Unity – Telegram
Everyday Unity
1.1K 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
NullTale/SoCreator: Create ScriptableObject by type from Unity Editor.

Can come in quite handy when you have a lot of noscriptable objects in the project. Which can be pretty common given that configs are better to be stored in SO since it doesn't generate garbage when being loaded. And SO loading is faster as it's a memcpy call under the hood.

https://github.com/NullTale/SoCreator

Info about SO is taken from a great talk at Unite

#noscriptableobject #editortool
👍2
This media is not supported in your browser
VIEW IN TELEGRAM
UnityTexelShaders: URP Texel Lighting

The aim of this project is to make late-1990-early-2000 game graphics, but with all-new look. Think of it as of half-life 1 software renderer with pixelated PBR.

https://github.com/keeborgue/UnityTexelShaders

More info on the effect: https://forum.unity.com/threads/the-quest-for-efficient-per-texel-lighting.529948/

#texelspaceshading #shader #urp
👍2
Top 10 Dotnet Exception Anti-Patterns in C#

- Exceptions should be reserved for the truly exceptional
- Exceptions should include all information needed to react to them
- Exceptions should only be caught where they can be appropriately responded to
- Do not catch Exception or force others to catch it by throwing Exception
- Exceptions add to your cognitive workload as a developer and slow down your application and should be avoided when possible

https://newdevsguide.com/2022/11/06/exception-anti-patterns-in-csharp/

#exception #errorhandling
👍2
Unity-Dependencies-Hunter: This tool finds unreferenced assets by scanning all files in your Unity project.

https://github.com/AlexeyPerov/Unity-Dependencies-Hunter

#editortool #assets
👍3
10 things you need to be doing in Unity

A list of basic tips by a guy who works on a lot of prototypes:
- Serializing components
- Drawing scene gizmos
- Initialization order
- Stop using public fields
- Mod to loop collections
- PlayClipAtPoint
- Limit extern calls with SetPositionAndRotation
- Operator overloading
- Composition
- Don't use lazy naming conventions

https://youtu.be/Ic5ux-tpkCE

#tips
👍2👎1
Custom Leaf Physics

Allows setting up fallen leaves with realistic physics

https://github.com/hasantarhan/LeafPhysics

#instancing #jobsystem #particles
👍2
animation.gif
20.3 MB
Unity-Grass-Instancer: Unity C# noscript and shader for GPU instanced grass

https://github.com/MangoButtermilch/Unity-Grass-Instancer

#grass #shader #hdrp #instancing #drawmesh
👍4
Mesh-Animation: Fast GPU vertex shader based animation library for Unity (VAT, Vertex Animation Texture, Morphing Animation)

Mesh Animation bakes vertex positions for each animation frame to texture. A custom shader then move vertexes to desired positions on GPU. Allows drawing the same original mesh multiple times with GPU Instancing. Unique animation parameters are overridden for each instance with Material Property Block.

https://github.com/codewriter-packages/Mesh-Animation

#instancing #gpuanimation #bake
👍4