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
Consolation

In-game debug console for Unity. It's difficult to retrieve logs and warnings from Unity outside the editor. To make it easier, this console displays output from Debug in the game itself. This is especially useful on mobile devices.

https://github.com/mminer/consolation

#console #debug
👍2
MagicOnion: Unified Realtime/API framework for .NET platform and Unity.

MagicOnion is a modern RPC framework for .NET platform that provides bi-directional real-time communications such as SignalR and Socket.io and RPC mechanisms such as WCF and web-based APIs.
This framework is based on gRPC, which is a fast and compact binary network transport for HTTP/2.

https://github.com/Cysharp/MagicOnion

#rpc #networking
👍5
C#: IEnumerable, yield return, and lazy evaluation

You should understand how IEnumerable works in order to avoid issues due to its lazy nature. It may be asked at interviews as well.

https://stackoverflow.blog/2022/06/15/c-ienumerable-yield-return-and-lazy-evaluation/

#linq #lazylinq #ienumerable #interview
👍3
Sand Balls Mechanics Implementation: The Best Way To Deform A Mesh In Unity

The goal of this post is not only to share the implementation but also to find out how naïve implementation could be to have a stable frame rate on a mobile device using the following ways to deform a mesh:
- Single-threaded
- Job system
- Compute shader with AsyncGPUReadback

All approaches were measured using the performance testing package, therefore it can be used as a sample of how to use it.

https://gamedev.center/sand-balls-mechanic-implementation-how-to-deform-a-mesh-the-most-performant-way-part-1/

#meshdeformation #sandballs #computeshader #jobsystem #performancetesting
👍5
Use math to solve problems in Unity with C#

Covers the following:
1. In front or behind you?
2. How do you know if you have passed a waypoint?
3. Turn left or right to reach a waypoint?
4. The coordinate where a ray intersects with a plane
5. Are two line segments intersecting?
6. Are two triangles intersecting?
7. Are two rectangles intersecting?
8. Find the convex hull
9. Useful algorithms
10. Triangulation
11. Delaunay Triangulation
12. Cut polygons
13. Voronoi diagram
14. Constrained Delaunay Triangulation

https://www.habrador.com/tutorials/math/

#math
👍3
Generic UnityEngine.Objects

This package allows to create and use generic ScriptableObjects and MonoBehaviours in Unity3D. Although generic serializable classes are now supported by Unity 2020, generic ScriptableObject and MonoBehaviour are not yet, and this plugin allows to overcome this limitation.

https://github.com/SolidAlloy/GenericUnityObjects

#generics
👍3
There is undocumented PlayerSettings.productGUID property which you can use to identify the specific project no matter project / product name, location and Unity version.

Helpful for the project-specific EditorPrefs (like DisplayDialog opt-out).

https://twitter.com/dmitriy_focus/status/1549299500853911553

#editortip
👍3