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
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
AsmdefHelper: Unity assembly definition utilities.

Contains:
- Dependency Graph
- Multiple Edit
- Compile Locker
- Custom Create

Latest Rider versions improve the workflow with asmdefs, but multiple edit and compile locker from this package can come in handy.

https://github.com/naninunenoy/AsmdefHelper

#asmdef #dependency #graph
👍7