My Unity repo's git config as of today.
For more complex and complete alternatives, look at:
| using System; | |
| using System.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public static class PackageManagerHelper { | |
| const string ServicesNamespace = "UnityEditor.PackageManager.UI.Internal"; | |
| /// <summary> | |
| /// Resolves a PackageManager service by its interface name. | 
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.LowLevel; | |
| using System.Linq; | |
| using System.Threading; | |
| namespace EditorUtils { | |
| // | |
| // Serializable settings | 
| /* | |
| Based on the Anti-aliased Euclidean distance transform described by Stefan Gustavson and | |
| Robin Strand. For further information, see https://contourtextures.wikidot.com/ and | |
| https://web.archive.org/web/20220503051209/https://weber.itn.liu.se/~stegu/edtaa/ | |
| The algorithm is an adapted version of Stefan Gustavson's code, it inherits the copyright | |
| statement below, which applies to this file only. | |
| The rewrite with Unity Burst support makes the execution 40 times faster by default, | |
| and 75 times faster if the passed in textures are both of type TextureFormat.RGBAFloat. | 
| Shader "Unlit/InfiniteGrid" | |
| { | |
| Properties | |
| { | |
| [Toggle] _WorldUV ("Use World Space UV", Float) = 1.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| _GridBias ("Grid Bias", Float) = 0.5 | |
| _GridDiv ("Grid Divisions", Float) = 10.0 | |
| _BaseColor ("Base Color", Color) = (0,0,0,1) | |
| _LineColor ("Line Color", Color) = (1,1,1,1) | 
| using System; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Net.Http; | |
| using System.Text; | |
| using Cysharp.Threading.Tasks; | |
| using Newtonsoft.Json; | 
My Unity repo's git config as of today.
For more complex and complete alternatives, look at:
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ObjDB | |
| { | |
| public interface IEventedType<T> | |
| { | 
| // Copyright (c) 2012 Calvin Rien | |
| // http://the.darktable.com | |
| // | |
| // This software is provided 'as-is', without any express or implied warranty. In | |
| // no event will the authors be held liable for any damages arising from the use | |
| // of this software. | |
| // | |
| // Permission is granted to anyone to use this software for any purpose, | |
| // including commercial applications, and to alter it and redistribute it freely, | |
| // subject to the following restrictions: |