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 "ToggleTest" | |
| { | |
| Properties | |
| { | |
| [Toggle(FILL_WITH_RED)] | |
| _FillWithRed ("Fill With Red", Float) = 0 | |
| } | |
| SubShader | |
| { | |
| Pass |
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
| const normalize = (min, max, value) => { | |
| if (value < min) return min | |
| else if (value > max) return max | |
| else return value | |
| } | |
| const splitChannels = (color, split) => { | |
| color = color.replace(split, '').replace(')', '').trim() | |
| let channels = color.split(',') |
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
| float nrand(float2 uv) | |
| { | |
| return frac(sin(dot(uv, float2(12.9898, 78.233))) * 43758.5453); | |
| } |
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
| # Set the default line endings behavior, in case people don't have core.autocrlf set. | |
| * text=auto | |
| # Define macros (only works in top-level gitattributes files) | |
| [attr]lfs filter=lfs diff=lfs merge=lfs -text | |
| [attr]unity-json eol=lf linguist-language=json | |
| [attr]unity-yaml merge=unityyamlmerge eol=lf linguist-language=yaml | |
| # Optionally collapse Unity YAML files on GitHub diffs | |
| # [attr]unity-yaml merge=unityyamlmerge text linguist-language=yaml linguist-generated |
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 TMPro; | |
| using TMPro.EditorUtilities; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class UGuiTextToTextMeshPro : Editor | |
| { | |
| [MenuItem("GameObject/UI/Convert To Text Mesh Pro", false, 4000)] | |
| private static void DoIt() |
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; | |
| [ExecuteInEditMode] | |
| public class DrawBones : MonoBehaviour | |
| { | |
| #if UNITY_EDITOR | |
| public bool ShowHierarchyAlwyas = true; | |
| public bool ShowSelectedBoneName = true; | |
| public Color BoneColor = Color.white; | |
| public Color SelectedBoneColor = Color.red; |
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
| @import url("https://fonts.googleapis.com/css?family=M+PLUS+Rounded+1c:700,900"); | |
| body { | |
| overflow: hidden; | |
| background-color: rgba(0, 0, 0, 0); | |
| } | |
| yt-live-chat-item-list-renderer #items { | |
| overflow: hidden !important; | |
| } |