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
| // Asynchronous Client Socket Example | |
| // http://msdn.microsoft.com/en-us/library/bew39x2a.aspx | |
| using System; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Threading; | |
| using System.Text; | |
| // State object for receiving data from remote device. |
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; | |
| public class CanvasWindow : EditorWindow { | |
| [MenuItem("Canvas/Show")] | |
| public static void ShowWindow() | |
| { | |
| CanvasWindow window = (CanvasWindow)EditorWindow.GetWindow(typeof(CanvasWindow)); |
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 enum AudioKey | |
| { | |
| } |
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/SepiaVF"{ | |
| Properties{ | |
| _MainTex("Main", 2D) = "black"{} | |
| } | |
| SubShader{ | |
| Lighting Off | |
| Pass{ | |
| CGPROGRAM |
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/BlurVF" { | |
| Properties{ | |
| _MainTex("Texture", 2D) = "white" {} | |
| _Diff("Diff", Range(0, 1)) = 0.1 | |
| } | |
| SubShader{ | |
| Pass{ | |
| CGPROGRAM | |
| #pragma fragment frag |
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/RimLighting" { | |
| Properties{ | |
| _MainTex("Texture", 2D) = "white"{} | |
| _RimWidth("RimWidth", Range(0.5, 5.0)) = 2.0 | |
| _Color("Color", Color) = (1, 1, 1, 0) | |
| } | |
| SubShader{ | |
| Pass{ | |
| CGPROGRAM | |
| #pragma vertex vert |
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; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| public class PacketQueue | |
| { | |
| /// <summary> | |
| /// パケットの情報 |
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 class AlphaGameObject : MonoBehaviour | |
| { | |
| private Color alpha = new Color(0, 0, 0, 0.01f); | |
| private List<Material> materials = new List<Material>(); | |
| private void Start() | |
| { | |
| //マテリアルの取得 | |
| foreach(Transform child in transform) | |
| { |
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
| #if UNITY_EDITOR | |
| AnimatorController mecanimController = null ; | |
| // Animation Controller 파일을 생성 | |
| mecanimController = UnityEditor.Animations.AnimatorController.CreateAnimatorControllerAtPath ( "Assets / Resources / Mecanims / HeroMecanim.controller" ); | |
| // Animation Controller에 애니메이션을 전환시키기위한 조건이되는 매개 변수를 추가 | |
| mecanimController.AddParameter ( "RunTrigger" , AnimatorControllerParameterType.Trigger); | |
| mecanimController.AddParameter ( "JumpTrigger" , AnimatorControllerParameterType.Trigger); | |
| mecanimController.AddParameter ( "SlidingTrigger" , AnimatorControllerParameterType.Trigger); | |
| mecanimController.AddParameter ( "DownTrigger" , AnimatorControllerParameterType.Trigger); |
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
| /* | |
| * Based on the Google Maps for Unity Asset | |
| * https://www.assetstore.unity3d.com/en/#!/content/3573 | |
| * However the relience on UniWeb has been removed | |
| * | |
| * | |
| Getting Started | |
| --------------- | |
| 1. Assign the GoogleMap component to your game object. |
OlderNewer