Entries from 2016-01-01 to 1 year
【Unity】バックボタン対応方法 - Unreal Engine・Unity・Cocos2d-xなどのメモ帳gupuru.hatenablog.jp void OnApplicationQuit(){ }
CommandInvokationFailure: Failed to build apk. See the Console for details. FogBugz debug certificate expired on designalikie.com
EasySave2でDateTime型は保存できないので、string型で保存する。 public string _sCurTimeIsLeft{ get{ if (ES2.Exists ("curTimeIsLeft" + _id)) { return ES2.Load<string> ("curTimeIsLeft" + _id); } else { return null; } } set{ ES2.Save (value, "curTimeIs</string>…
UI エフェクトコンポーネント「outline」を使って、UI をアウトラインする。 Unity - マニュアル: Outline Unity - マニュアル: UI エフェクトコンポーネント
Monodevelopでソースコードの折りたたみ機能を使う - みつろぐ Mtk's Blog: [Unity3D] MonoDevelopのテキストエディターを使いやすくする
NullReferenceException: Object reference not set to an instance of an object <原因> Inspecterで、null(指定していない)スクリプトをコンポーネントに持つオブジェクトが存在する。 NullReferenceException: Object reference not set to an instan…
using UnityEngine; using System.Collections; using System.Collections.Generic; public class AchievementNotif : MonoBehaviour { public AchievementContentNotif _achievementContentNotif; public Animator _animNotif; #region Event void OnEnable…
EventManagerでイベントの起点を束ねる。 1. 全てのイベントを管理するEventManager 2. Eventの起点 3. どんなEventを呼ぶかを記述 1. 全てのイベントを管理するEventManager EventManager.cs using UnityEngine; using System.Collections; public class Ev…
人型キャラクターのアニメーションに。 gamedevelopment.tutsplus.com esotericsoftware.comwww.youtube.comwww.youtube.com
1. "string型(文字列型)"から"enum列挙型"ヘのキャスト private List<AchievementContents> LoadAbilityTableFromJSON(string json){ JsonData jresult = JsonMapper.ToObject (json); List<AchievementContents> data = new List<AchievementContents> (); for(int i=0;i</achievementcontents></achievementcontents></achievementcontents>
整数同士の割り算 => 答えも整数になる! 片方の型を小数点を含む型にして割り算を実行する。 blog.jnito.com
エディタ上だけしたいこと、例えば、PlayerPrefs使って設定したけど、今エディタ上では必要ないときとか。 void Awake(){ #if UNITY_EDITOR PlayerPrefs.DeleteAll (); #endif } unitygeek.hatenablog.com
UIの親につけるスクリプト UIAchievementMenu.cs using UnityEngine; using System.Collections; public class UIAchievementMenu : MonoBehaviour { private GameObject _container ; void Awake(){ _container = transform.FindChild("Container").gameObj…
自動改行は、日本語のテキストを用いる時に役に立つ!もっと早く知りたかった! tsubakit1.hateblo.jp www.atmarkit.co.jp
hiyotama.hatenablog.comdocs.unity3d.com
EventManager.cs using UnityEngine; using System.Collections; public class EventManager { public delegate void AchievementTapHandler(int number); public static event AchievementTapHandler onAchievementTapE; public static void onAchievementT…
intに変換したい時 sample1 public List<AchievementContents> RetrieveAchievement(AchievementManager.ACHIEVEMEN_TYPE type){ List<AchievementContents> items= new List<AchievementContents>(); for(int i = 0 ; i < _myCollection.Count ; i++){ int t = 0; int.TryParse(_myCollection[i]._type,out t ); if((Achieve</achievementcontents></achievementcontents></achievementcontents>…
Perpose Recycling Object Avoid from making the same object thinkit.co.jpObjectPool:きっとゲームに関するブログ@tk_gamehttp://d.hatena.ne.jp/asakichy/20090406/1238985837d.hatena.ne.jpsample1 using UnityEngine; using System.Collections; using…
LitJSONのインストール http://lbv.github.io/litjson/ LitJson.dllをダウンロード=>UnityプロジェクトのAssets/Pluginsに入れる JSONファイル Assets/Resourcesにディレクトリを作成、そこに.txtか.jsonを入れる hwks.hatenadiary.jpLitJSON
カメラの設定 UI Canvasの分だけカメラを作る。その際に、カメラの位置をずらして、常に確認できるようにする。 複製したCameraのAudio Listenerを消去する。 Canvasの設定 Canvas - Render Mode [Screen Space - Camera] - Render Camera [指定したいカメラ…