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.UI; | |
| using System.Collections.Generic; | |
| public class SpriteChanger : MonoBehaviour | |
| { | |
| public List<Sprite> Sprites = new List<Sprite>(); | |
| public float ChangeRate = 2f; | |
| private Image image; |
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
| // Blend mode and blur effect combined for UI objects. | |
| Shader "BlendModes/Extra/UIBlured" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} | |
| _Color("Tint", Color) = (1,1,1,1) | |
| _BlurRadius("Blur Radius", Range(1, 20)) = 7 |
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 #SCRIPTNAME# : MonoBehaviour | |
| { | |
| private void Awake () | |
| { | |
| } | |
| private void Update () |
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 "BlendModes/Extra/BlendLightedMesh" | |
| { | |
| Properties | |
| { | |
| _Color ("Tint Color", Color) = (1,1,1,1) | |
| _MainTex ("Base (RGB)", 2D) = "white" {} | |
| _NormalMap ("Normal Map", 2D) = "bump" {} | |
| _BumpDepth ("Bump Depth", Range(0.0, 1.0)) = 1.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
| Shader "BlendModes/Extra/DirectSurfMesh" | |
| { | |
| Properties | |
| { | |
| _Color("Tint Color", Color) = (1,1,1,1) | |
| _MainTex("Base (RGB)", 2D) = "white" {} | |
| } | |
| 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 System; | |
| using UnityEngine; | |
| namespace UnityStandardAssets.ImageEffects | |
| { | |
| [ExecuteInEditMode] | |
| [RequireComponent (typeof(Camera))] | |
| [AddComponentMenu ("Image Effects/Other/Screen Overlay")] | |
| public class ScreenOverlay : PostEffectsBase | |
| { |
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 "BlendModes/MeshDefault/Grab" | |
| { | |
| Properties | |
| { | |
| _Color("Tint Color", Color) = (1,1,1,1) | |
| _MainTex("Base (RGB)", 2D) = "white" {} | |
| } | |
| 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
| Add-AzureAccount | |
| $vm = Get-AzureVM -ServiceName "example-service-name" -Name "example-vm-name" | |
| for ($i=7000; $i -le 7100; $i++) | |
| { | |
| $EndpointName = "EXAMPLE-" | |
| $EndpointName += $i | |
| Add-AzureEndpoint -Name $EndpointName -Protocol "udp" -PublicPort $i -LocalPort $i -VM $vm | |
| } | |
| $vm | Update-AzureVM |
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 UnityEditor; | |
| [InitializeOnLoad] | |
| public class AutosaveOnRun | |
| { | |
| static AutosaveOnRun() | |
| { | |
| EditorApplication.playmodeStateChanged = () => | |
| { | |
| if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying) |
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; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class vgPlayerCollisionTester : vgMonoBehaviour |