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 System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| public unsafe class NetStandardPlus | |
| { | |
| [UnmanagedFunctionPointer(CallingConvention.StdCall)] | |
| public delegate void MyStdcallDelegate(); | |
| public static void Call(delegate*<void> action) => action(); |
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 System.Collections.Generic; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| public class MaterialGradientDrawer : MaterialPropertyDrawer { | |
| private int resolution; |
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; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| namespace Will | |
| { | |
| public static class InvokeExtensions | |
| { | |
| public static IEnumerator InvokeFrame(this MonoBehaviour monoBehavior, Action method, int frame = 1) |
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; | |
| using UnityEngine.Assertions; | |
| using System.Linq; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| namespace SmartCombine { | |
| public class SmartMeshData { | |
| public Mesh mesh {get; private set;} | |
| public Matrix4x4 transform {get; private set;} |
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 "Custom/GreyScaleForBackPlay" { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
| _Color ("Tint", Color) = (1,1,1,1) | |
| [MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
| _EffectAmount ("Effect Amount", Range (0, 1)) = 1.0 | |
| } | |
| SubShader |
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; | |
| // Nine slice scaling using a Mesh. | |
| // Original code by Asher Vollmer | |
| // https://twitter.com/AsherVo | |
| // http://ashervollmer.tumblr.com | |
| // Modifications by Thomas Viktil | |
| // https://twitter.com/mandarinx | |
| // http://ma.ndar.in/ |
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; | |
| using System.Collections; | |
| using Holoville.HOTween; | |
| namespace FS.Handlers | |
| { | |
| public class FSScrollController : MonoBehaviour { | |
| public float contentOverflowY = 0f; | |
| public float contentHeight = 0f; |
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
| // The MIT License (MIT) | |
| // Copyright (c) 2016 David Evans @phosphoer | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR |
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 "Mobile/Illum VertexLit" { | |
| Properties { | |
| _MainTex ("Base (RGB)", 2D) = "white" {} | |
| _Illum ("Illum (RGB)", 2D) = "black" {} | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Opaque" } | |
| LOD 80 | |
| 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
| Shader "Yash/SpotLight" { | |
| Properties { | |
| _Color("Main Color",Color) = (1,1,1,.5) | |
| _Size("Size",Float) = 1 | |
| } | |
| SubShader { | |
| Tags { "Queue"="Transparent" "IgnoreProjector"="True" } | |
| Blend One One | |
| Pass |
NewerOlder