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
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
Media is too big
VIEW IN TELEGRAM
A scene switcher for Unity

It does require the editor overlays API which requires Unity 2021.2+

https://gist.github.com/alexanderameye/c1f99c6b84162697beedc8606027ed9c

#editortools #scene
👍3
This media is not supported in your browser
VIEW IN TELEGRAM
New super nice template with a driving environment and a drivable Volvo car available on the Hub using Unity 21LTS and HDRP . Also packed with nice tools to generate roads

https://mobile.twitter.com/the_f_key/status/1553045455965134848

#roadgeneration #carphysics #vehiclephysics
👍3💩1
DMotion - A high level Animation Framework for Unity DOTS

DMotion (DOTS Motion) is a general purpose Animation framework and State Machine for DOTS, built on top of Kinemation (Kinemation doesn't officially support any platform except Windows though as one of its dependencies wasn't compiled to be tested on other platforms)

https://github.com/gamedev-pro/dmotion

#animator #dots
👍4
This media is not supported in your browser
VIEW IN TELEGRAM
Unity 2021.2 and up supports some NEW features of C# 9

#csharp
👍3
EasyNoise: An open source unity noise library

Easy generation of noise and falloff for fast iterations. Use gradient and generate texture for your terrain with just a few lines of code.
Can come in quite handy for prototyping.

https://github.com/AndreaDev3D/EasyNoise

#noise #noisegeneration
👍3