- https://icons.getbootstrap.com/
- game dev icons https://game-icons.net/
- illustrations https://undraw.co/illustrations
- list of free sites https://www.toools.design/free-open-source-icon-libraries
- https://materialdesignicons.com/
- https://www.iconsdb.com/
- https://simpleicons.org/
- https://khushmeen.com/icons.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://forum.unity.com/threads/libtressdotnet-example.1250383/#post-7952740 | |
| /// <summary> | |
| /// Generate Mesh using LibTess. | |
| /// </summary> | |
| /// <param name="pointLists"></param> | |
| /// <param name="textureScale"></param> | |
| public void GenerateGeometryWithLibTess(List<List<Vector3>> pointLists, float textureScale) | |
| { | |
| // Libtess stuff | |
| var triangulatedShape = new TriangulatedShape2D(pointLists); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://forum.unity.com/threads/how-render-3d-render-texture-in-custom-shader.1247764/#post-7948198 | |
| using System.IO; | |
| using UnityEngine; | |
| using UnityEngine.Experimental.Rendering; | |
| using UnityEngine.Rendering; | |
| using Common.Unity.Utility; | |
| public class RayMarch : MonoBehaviour | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SOURCE: https://gitlab.com/GuitarBro/hub-patcher/-/blob/master/hub_patcher.py | |
| <style> | |
| /******************************************/ | |
| /* */ | |
| /* HubPatcher and theme(s) by Andrew. */ | |
| /* */ | |
| /******************************************/ | |
| /* */ | |
| /* Last updated on 2022-3-3. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://forum.unity.com/threads/adding-vertex-effect-to-surface-shader.1245025/ | |
| Shader "Custom/CurvedSurfaceShader" | |
| { | |
| Properties | |
| { | |
| _Color ("Colour", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic ("Metallic", Range(0,1)) = 0.0 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class FileComparer | |
| { | |
| public static bool CompareEquals(string filePath1, string filePath2, int bufferSize = 65536) | |
| { | |
| if (filePath1 == filePath2) return true; | |
| var buffer1 = ArrayPool<byte>.Shared.Rent(bufferSize); | |
| var buffer2 = ArrayPool<byte>.Shared.Rent(bufferSize); | |
| try | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| // @kurtdekker | |
| // To use: | |
| // import a repeating sprite, FullRect | |
| // drop it on a SpriteRenderer GameObject | |
| // drop this on that same SpriteRenderer you want to be infinitely tiled | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://forum.unity.com/threads/connect-unity-and-wpf.337945/#post-2202467 | |
| using System; | |
| using System.Text; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| public class serv | |
| { | |
| public static void Main() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Based on the Unity Wiki FloatingOrigin script by Peter Stirling | |
| // URL: http://wiki.unity3d.com/index.php/Floating_Origin | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class FloatingOrigin : MonoBehaviour | |
| { | |
| [Tooltip("Point of reference from which to check the distance to origin.")] | |
| public Transform ReferenceObject = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://forum.unity.com/threads/draw-spherecasts-code-review.1243714/ | |
| [Range(0.1f, 1f)] public float sphereCastRadius; | |
| [Range(1f, 100f)] public float range; | |
| public LayerMask layerMask; | |
| private RaycastHit hit; | |
| private void OnDrawGizmosSelected() | |
| { | |
| if (Physics.SphereCast(transform.position, sphereCastRadius, transform.forward * range, out hit, range, layerMask)) | |
| Gizmos.DrawWireSphere(SphereCase(), sphereCastRadius); |