This file contains 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; | |
} |
This file contains 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 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 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 | |
## Unity ## | |
*.cs diff=csharp text | |
*.cginc text | |
*.shader text | |
*.mat merge=unityyamlmerge eol=lf |
This file contains 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 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 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 |