π
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
| Shader "Name" { | |
| Properties { | |
| name ("display name", Range (min, max)) = number | |
| name ("display name", Float) = number | |
| name ("display name", Int) = number | |
| name ("display name", Color) = (number,number,number,number) | |
| name ("display name", Vector) = (number,number,number,number) |
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
| Shader "Unlit/SimpleGeometry" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } | |
| LOD 100 |
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 class MyBehavior : MonoBehaviour { | |
| // This will store the string value | |
| [StringInList("Cat", "Dog")] public string Animal; | |
| // This will store the index of the array value | |
| [StringInList("John", "Jack", "Jim")] public int PersonID; | |
| // Showing a list of loaded scenes | |
| [StringInList(typeof(PropertyDrawersHelper), "AllSceneNames")] public string SceneName; | |
| } |
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 UnityEngine; | |
| public class Colors | |
| { | |
| // NOTE: The follwing color names come from the CSS3 specification, Section 4.3 Extended Color Keywords | |
| // http://www.w3.org/TR/css3-color/#svg-color | |
| public static readonly Color AliceBlue = new Color32(240,248,255,255); | |
| public static readonly Color AntiqueWhite = new Color32(250,235,215,255); | |
| public static readonly Color Aqua= new Color32(0,255,255,255); |
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 UnityEngine; | |
| public static class ConvertToSpriteExtensiton | |
| { | |
| public static Sprite ConvertToSprite(this Texture2D texture) | |
| { | |
| return Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), Vector2.zero); | |
| } | |
| } |
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 UnityEngine; | |
| public static class Colors | |
| { | |
| public static readonly Color AbsoluteZero = new Color32( 0, 72, 186, 255 ); | |
| public static readonly Color Acajou = new Color32( 76, 47, 39, 255 ); | |
| public static readonly Color AcidGreen = new Color32( 176, 191, 26, 255 ); | |
| public static readonly Color Aero = new Color32( 124, 185, 232, 255 ); | |
| public static readonly Color AeroBlue = new Color32( 201, 255, 229, 255 ); | |
| public static readonly Color AfricanViolet = new Color32( 178, 132, 190, 255 ); |
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 void Shuffle<T>(this IList<T> ts) | |
| { | |
| var count = ts.Count; | |
| var last = count - 1; | |
| for (var i = 0; i < last; ++i) | |
| { | |
| var r = UnityEngine.Random.Range(i, count); | |
| var tmp = ts[i]; | |
| ts[i] = ts[r]; | |
| ts[r] = tmp; |
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
| { | |
| "emojis": [ | |
| {"emoji": "π©βπ©βπ§βπ§", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "π©βπ©βπ§βπ¦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "π©βπ©βπ¦βπ¦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
| {"emoji": "π¨βπ©βπ§βπ§", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
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
| #ifndef __QUATERNION_INCLUDED__ | |
| #define __QUATERNION_INCLUDED__ | |
| #define QUATERNION_IDENTITY float4(0, 0, 0, 1) | |
| #ifndef PI | |
| #define PI 3.14159265359f | |
| #endif | |
| // Quaternion multiplication |
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; | |
| using UnityEngine; | |
| [Serializable] | |
| public struct MinMax | |
| { | |
| [SerializeField] | |
| private float min; | |
| [SerializeField] |