Unity 全般
参考サイト 【Unity開発】uGUIのInputFieldの使い方 チャット風機能【ひよこエッセンス】 - Unity5(C#)初心者・入門者向けチュートリアル ひよこのたまご Unity - マニュアル: Input Field (入力フィールド) using UnityEngine; using UnityEngine.UI; usi…
Unity - マニュアル: 名前空間
シーンの切り替えた直後に呼ばれる実行の順番:OnEnable, Awake, OnLevelWasLoaded, Start - Unityな日々(Unity Geek)unitygeek.hatenablog.com イベント関数の実行順 - 青空の月masa795.hatenablog.jp イベント関数のまとめ!! Unity - マニュアル: イベ…
if(Parent.transform.FindChild("TimerGameOverScript").gameObject.activeSelf == true) nextsystemkinectblog.seesaa.net
確認手順 "RectTransform" > "Scale" と "Width""Hight"のバランスを変えてみる。 Spriteデータのチェックをする。 Unityのエディタ上だけの可能性がある。デバイスでチェックする。 参考サイト Unityの3D Textで文字が滲む問題の対策 - テラシュールブログ …
Staticで定義した変数は、シーンを遷移後も保持される ゲームは初心者にやさしく: Unityメモリ管理「Staticクラス」
独自のクラスをインスペクター上で可視化C#で構造体をInspectorで使える様にする方法 - 強火で進めd.hatena.ne.jp
アクティブ状態にしたら呼ばれるOnEnable()GameObjectのactiveについて確認 Unity - 万年素人からGeekへの道d.hatena.ne.jp
www.youtube.com I made a script to make a unity camera render with chunky pixels (works in free) • /r/Unity3Dwww.reddit.com http://i.imgur.com/61jkcqa.gif using UnityEngine; using System.Collections; //Attach this to a camera public class …
System.DateTime.Now.ToString() 日付と時間 - Unityな日々(Unity Geek)unitygeek.hatenablog.com 書式を指定して数値を文字列に変換する: .NET Tips: C#, VB.NET
//現在の標準時刻お取得方法 DateTime dateNow = DateTime.Now; TimeZoneInfo.ConvertTimeToUtc(dateNow); Debug.LogWarning(TimeZoneInfo.ConvertTimeToUtc(dateNow)); タイム ゾーン間での時刻の変換 //標準時刻からの時差の取得方法 System.DateTimeOffse…
5回に一回呼び出す int n; public void PlayButton(){ if(!Play){ Play = true; AudioManager.instance.ButtonOKSound(); StartCoroutine(PlaybuttonOnWait()); AdsManager.Instance.RequestBanner (); //5回に一回出るようにする。 n++; if (n == 5) { if…
チラシの裏的備忘録: Unityゲームを終了する
アニメーションの遷移SetBool第 1 回・Unity / Mecanimでユニティちゃんを歩かせる | ピックアップ | ギャップロwww.gaprot.jp
GUIのレイアウトを設定する - Unityな日々(Unity Geek)unitygeek.hatenablog.com 【エディタ拡張徹底解説】初級編②:いろいろなGUI(GUILayout編)【Unity】 | ケットシーウェアcaitsithware.com ActionScript入門Wiki - Unity - GUILayout - Buttonwww40.at…
101 2Dカメラのピンチインアウト処理 [stepism@Unityメモ] Unityでピンチインとか(EasyTouch) - 株式会社BEFOOLbefool.co.jp void Update () { if(Input.GetKey(KeyCode.Space)){ PlayerPrefs.DeleteAll(); print("Reset done!"); } if(Playbutton){ orthogr…
[Unity] オブジェクトの表示、非表示www.happytrap.jp 【Unity】iTweenというアセットがスゴイ【GUI】 - モノクロタイムreiji1020.hatenablog.com
イコールと同じ MyCollection[i]._Id.Equals(id)
//宣言が必要 using LitJson; public class HostageInfo : MonoBehaviour { public List<HostageCollection> MyCollectionHS; public List<Sprite> SpriteSeriesHS; // public List<String> HSName; public static HostageInfo instance = null; void Awake(){ if(instance == null){ instance =</string></sprite></hostagecollection>…
bool型の変数を作って、最初の一回だけ表示するようにすれば良い チュートリアル用の番号 public bool isFirstTimePlay{ get{ if (ES2.Exists ("_isFirstTime")) { return ES2.Load<bool> ("_isFirstTime"); }else { //存在していれば、最初だということでtrueにす</bool>…
studio.openxcell.com
バイブレーション Handheld.Vibrate(); Unity - Scripting API:docs.unity3d.com [Unity] Android端末でバイブレーションを使う: ものづくりログblog.be-style.jpn.com
1. コルーチンの書き方 public void DownRoom(){ //コルーチンを生成する。 StartCoroutine(DownRoomWait()); } // publicにする。 public IEnumerator DownRoomWait(){ } // 又はprivateにすることもできる。 IEnumerator DownRoomWait(){ } public、protec…
UIのImageをフェードアウト、フェードインさせる。 using UnityEngine; using System.Collections; using UnityEngine.UI; public class SpriteFadeOut : MonoBehaviour { public float fadeTime = 1f; private float FadeOutAlpha = 1f; private float Fade…
以前のバージョンのダウンロードUnity: 統合ゲーム開発環境japan.unity3d.com
テキストの色を変更する。 //赤 gameObject.GetComponent<Text>().color = new Color(1, 0, 0, 1); uGUI Panelの色を変えてみます。 - Qiita</text>
Toggleの付属オブジェクトのLabelも押すことができる。 Labelが大きすぎると、他のUIを干渉してしまう可能性がある。
PlayerPrefsの保存したデータを消すメソッド void Update () { if(Input.GetKey(KeyCode.Space)){ PlayerPrefs.DeleteAll(); print("リセットしたよ"); } } 【Unity】PlayerPrefsで簡単セーブ - プログラムは、用いる言葉の選択で決まるtaka-say.hateblo.jp
物体を停止させる。 重力がある場合は、gravityScaleもゼロにする。 hit.transform.gameObject.GetComponent<Rigidbody2D>().gravityScale = 0; hit.transform.gameObject.GetComponent<Rigidbody2D>().velocity = Vector3.zero; http://www.happytrap.jp/blogs/2012/01/14/6719/www.ha</rigidbody2d></rigidbody2d>…
IEnumerator EmptyOpen(){ Parent = CurrentSituation.gameObject.transform.parent.gameObject; if (CurrentSituation.Tag == "Empty") { yield return new WaitForSeconds(0.3f); CurrentSituation.Empty(LevelManager.instance.Level,CurrentSituation.Ch…