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) | |
| // Modifications by David Leon. Copyright (c) 2017 Lince Works SL. MIT license (see license.txt) | |
| Shader "ToonDeferredShading2017" { | |
| Properties { | |
| _LightTexture0 ("", any) = "" {} | |
| _LightTextureB0 ("", 2D) = "" {} | |
| _ShadowMapTexture ("", any) = "" {} | |
| _SrcBlend ("", Float) = 1 | |
| _DstBlend ("", Float) = 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 UnityEditor; | |
| using System.IO; | |
| public static class CustomInspectorCreator | |
| { | |
| [MenuItem("Assets/Create/Custom Inspector", priority = 81)] | |
| static void CreateInsptorEditorClass() | |
| { | |
| foreach (var script in Selection.objects) |
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
| void GetStreamingAssetsPath(string fileName) | |
| { | |
| #if UNITY_EDITOR | |
| dbPath = string.Format(@"Assets/StreamingAssets/{0}", fileName); | |
| #else | |
| // check if file exists in Application.persistentDataPath | |
| var filepath = string.Format("{0}/{1}", Application.persistentDataPath, fileName); | |
| if (!File.Exists(filepath)) |
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; | |
| using System.Collections.Generic; | |
| public class EditorWindowExample : EditorWindow | |
| { | |
| List<Node> nodes = new List<Node> (); |
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
| /*! Socket.IO.js build:0.9.6, development. Copyright(c) 2011 LearnBoost <dev@learnboost.com> MIT Licensed */ | |
| /** | |
| * Originally Ported to titanium by Jordi Domenech <jordi@iamyellow.net> | |
| * source: https://github.com/iamyellow/socket.io-client | |
| */ | |
| this.io = {}; | |
| module.exports = this.io; | |
| /** |