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
Tutorial How To Make An Interactive Grass Shader In Unity

This tutorial is the step-by-step guide on how to add interactivity to the grass shader. It is the extension of the geometry grass shader tutorial by Roystan.
In this blog post I tried to show an iterative approach to getting the desired effect and I hope it will help you to start learning shaders and begin from other simple effects breaking it down in the similar way.

https://gamedev.center/tutorial-how-to-make-an-interactive-grass-shader-in-unity/

Repo: https://github.com/AlexMerzlikin/Unity-GrassShader

#shader #effect #grass
👍2
Triangle.Net-for-Unity

Triangulation lib wrapper for Unity. Triangle.NET generates 2D (constrained) Delaunay triangulations and high-quality meshes of point sets or planar straight line graphs. I guess you already knew about it, if you were interested in mesh generation. If not, then if you ever stumble upon triangulation in Unity, you should know there is the lib available for doing it.

https://github.com/Nox7atra/Triangle.Net-for-Unity

#triangulation #mesh
👍2
UI with rectangles? Don't use null as a source!
Create a 1x1 square image and add it to your sprite atlas. That way all rectangles will be drawn together with the images. You can reduce several draw calls per frame!
When using a null reference in an Image field: "None (Sprite)", Unity actually puts a UnityWhite texture in there that causes the GPU to make an additional draw call.

https://twitter.com/HetiDev/status/1493317817688629252

#ui #optimization #tips
👍1
Unity Recorder

Use the Unity Recorder package to capture and save data during Play mode. For example, you can capture gameplay or a cinematic and save it as an .mp4 file.

https://docs.unity3d.com/Packages/com.unity.recorder@2.0/manual/index.html

#video #recorder
👍3
👍2
Trajectory prediction in Unity

Predict trajectory with Physics.Simulate. Not sure about performance if there is a lot of stuff going on, but should be absolutely fine for small simulations. Anyway in case you use Physics.Simulate a lot dont forget to always profile before optimizing. Or if you are still in a preproduction phase, make a small proof of concept with expected amount (and more for greater confidence) of operations to simulate, so you can be sure that this approach is suitable for your case.

https://www.youtube.com/watch?v=4VUmhuhkELk

Repo: https://github.com/ToughNutToCrack/TrajectoryPrediction

#simulation #physics #trajectory #prediction
👍1