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
| // Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
| Shader "Standard 2-Sided" | |
| { | |
| Properties | |
| { | |
| _Color("Color", Color) = (1,1,1,1) | |
| _MainTex("Albedo", 2D) = "white" {} | |
| _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 |
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
| // from : MSDN | |
| // 델리게이트를 선언한다. | |
| delegate void SetTextCallback(string text); | |
| // 컨트롤의 접근은 따로 함수를 만들어서 접근하도록 한다. | |
| private void SetText(string text) | |
| { |
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
| /* Attach this to any object in your scene, to make it work */ | |
| using System; | |
| using System.Collections; | |
| using UnityEngine; | |
| using System.Threading; | |
| public class MainThread : MonoBehaviour | |
| { | |
| private static InvokePump mPump; |
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 Microsoft.Win32; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| using System.Xml.Serialization; |
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 string GetInstalledAppFolderPath(Guid installGuid) | |
| { | |
| string result = string.Empty; | |
| try | |
| { | |
| using (RegistryKey parent = Registry.LocalMachine.OpenSubKey(SharedConstants.UninstallRegKeyPath, false)) | |
| { | |
| string guidText = installGuid.ToString("B"); | |
| RegistryKey key = parent.OpenSubKey(guidText, false); | |
| result = (string)key.GetValue("FolderPath", string.Empty); |
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 UnityEditor; | |
| using System.Collections.Generic; | |
| using UnityEngine.SceneManagement; //3 | |
| public class SelectGameObjectsWithMissingScripts : Editor | |
| { | |
| [MenuItem("Tools/WPAG Utilities/Select GameObjects With Missing Scripts")] | |
| static void SelectGameObjects() | |
| { |
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 UnityEditor; | |
| using UnityEngine.SceneManagement; | |
| using UnityEditor.SceneManagement; | |
| using System; | |
| public class FindMissingScriptsEditor : EditorWindow | |
| { | |
| [MenuItem("Window/Utilities/Find Missing Scripts")] | |
| public static void FindMissingScripts() |
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 | |
| { | |
| public enum AAMode | |
| { | |
| FXAA2 = 0, | |
| FXAA3Console = 1, | |
| FXAA1PresetA = 2, |
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] | |
| [AddComponentMenu ("Image Effects/Color Adjustments/Color Correction (Curves, Saturation)")] | |
| public class ColorCorrectionCurves : PostEffectsBase | |
| { | |
| public enum ColorCorrectionMode |
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/Camera/Depth of Field (Lens Blur, Scatter, DX11)") ] | |
| public class DepthOfField : PostEffectsBase { |