Pinned Loading
-
Unity - Rounded Cube Collider (using...
Unity - Rounded Cube Collider (using primitives) 1// Rounded Cube Collider2// https://gist.github.com/edgpedroso/850d3606bceef61bb3c6a858d29fce693// Code is modified from @jasper-flick/CatLikeCoding4// https://catlikecoding.com/unity/tutorials/rounded-cube/5using System.Collections.Generic;
-
Unity - Draws an icon on top of defa...
Unity - Draws an icon on top of default prefab icons on the Project window. 1// Prefab Custom Icon Drawer2// https://gist.github.com/edgpedroso/f7827a817748b27b19a7ebb13b991db334using UnityEditor;
5using UnityEngine;
-
New.cs
New.cs 1namespace New
2{3class @new<NewNew> : @new where NewNew : @new<NewNew>, new()
4{5@new(@new<NewNew> @new) => New(@new);
-
Unity - Dynamic Singleton. Use anywh...
Unity - Dynamic Singleton. Use anywhere, with any unity object, without any implementation in target class. Requires C# 8.0 (Unity 2020) 1// Dynamic UnityEngine Singleton2// Use anywhere, with any unity object, without any implementation in target class. Requires C# 8.0 (Unity 2020)3// Usage: var obj = ISingleton<SomeUnityObjectClass>.Instance;4// Pros: Flexibility, ~Less Boilerplate5// Cons: Something will go wrong eventually
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.