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
SmartTexture Asset for Unity

SmartTexture is a custom asset for Unity that allows you a channel packing workflow in the editortextures and use them in the Unity editor for a streamlined workflow. SmartTextures work as a regular 2D texture asset and you can assign it to material inspectors.

https://github.com/phi-lira/SmartTexture

#assets #texture #channel #packing #memory #optimization
GitHub - UnityLabs/procedural-stochastic-texturing: Modified Shader Graph package implementing Procedural Stochastic Texturing

Addition to the recent article about this method. Allows to remove repetitive pattern on some types of tiling textures.

https://github.com/UnityLabs/procedural-stochastic-texturing

#texture #tiling
Learn How to Use the Unity Profiler By Example

A very basic example how to profile your code and how to combine a few meshes into one through the code.

https://gamedevunboxed.com/learn-how-to-use-the-unity-profiler-by-example/

#profiling #optimization #mesh #combine
Making Sense of FixedUpdate, Update, and LateUpdate

A basic article about different Updates in Unity and when to and not to use them

https://letsbuild.gg/rcarlson/making-sense-of-fixedupdate-update-and-lateupdate-1p19

#update
5 more things about enums in C#

https://www.code4it.dev/blog/5-more-things-about-enums-csharp

you can change the underlying type to short, uint and similar;
you can also define negative values;
inside the enum definition, you can create values that represent the union of other two (or more);
by default, .NET APIs return enum values as numbers; to fix it, you must add a configuration in your Startup class;
you can also omit the Flags attribute; the downside is that when you print the value of a variable that is the union of 2 enums, the returned string is the sum of the enums stored inside that variable, not the string representation.

#csharp #enum #flags
10000 Update() calls - Unity Technologies Blog

Old but gold. Performance cost of calling unity magic methods and when you should think about using a custom update manager to save execution time.

https://blogs.unity3d.com/2015/12/23/1k-update-calls/

#performance