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.Reflection; | |
| using UnityEditor; | |
| using UnityEngine; | |
| [InitializeOnLoad] | |
| public class HierarchyObjectSize | |
| { | |
| static HierarchyObjectSize () | |
| { |
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
| class aaa { | |
| static void bbb (int a ,params string[] strs) { | |
| } | |
| } | |
| static void Main () { | |
| int a = 1; | |
| int b = 2; | |
| bbb(a,"foo","bar","baz"); | |
| bbb(b); |
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
| Debug.Log("<color=green>Awake</color>"); |
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 System.Collections.Generic; | |
| namespace WWWKit | |
| { | |
| /// <summary> | |
| /// A handy class to use WWW class and WWWForm class. | |
| /// | |
| /// Features: |
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 UnityEngine.UI; | |
| public class iTweenTest : MonoBehaviour { | |
| public Text text1; | |
| private Hashtable table = new Hashtable(); // ハッシュテーブルを用意 | |
| // Use this for initialization | |
| void Start () { |
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
| _tweenEvent = gameObject.GetComponent<iTweenEvent>(); | |
| // EventTypeからEventParamMappingsのキーマップ配列を取得、これには各パラメータ型情報が入っている | |
| var mappings = EventParamMappings.mappings[_tweenEvent.type]; | |
| System.Type valueType = mappings["speed"]; | |
| object setValue = 10; | |
| object speed = Convert.ChangeType(setValue, valueType); | |
| if (_tweenEvent.Values.ContainsKey("speed")){ |
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; | |
| public class TestAnimationMethod : MonoBehaviour { | |
| private GameObject ParticleObject; | |
| private Animator animator; | |
| private int _plusVal = 0; | |
| private float _blendTreeVal = 0.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
| using UnityEngine; | |
| using System.Collections; | |
| public class AssetBundleLoad_Unity5 : MonoBehaviour { | |
| public void CreateFileAssetBundleFileLoad() | |
| { | |
| // マニフェストが入っているファイルをパスで指定 | |
| string path = Application.streamingAssetsPath + "/" + "BuildOutPut" + "/"; | |
| // マニフェストのアセットバンドルを作成 | |
| // (マニフェストのアセットバンドルの中にアセットバンドル化したデータ群が入っている) | |
| AssetBundle NoCompress = AssetBundle.CreateFromFile(path + "BuildOutPut"); |
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.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Text; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Threading; | |
| using System.Text.RegularExpressions; |
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 System.Collections.Generic; | |
| public class PersonalData | |
| { | |
| public int id; | |
| public string name; | |
| public long money; | |
| public float weight; |
OlderNewer