冷奴の開発メモ

UnityとかC#とかプログラミングのことをメモしていく場所

C#

ニフティクラウドmobile backendを使ってみた

アプリで作成したデータ(Serializableなクラス)をユーザ間で共有する仕組みを探していたところ、ニフティクラウドmobile backend(NCMB)が想像以上に簡単だったためメモ。公式ドキュメント。導入方法やサンプルなどが非常に充実している。 ドキュメント : 開…

エディタ用テキストダイアログ

ソース using UnityEngine; using UnityEditor; namespace Hiyayakko { public sealed class EditorTextDialog : EditorWindow { private string label = ""; private string value = ""; private System.Action<string> onOk = null; private System.Action onCance</string>…

IntをEnumとして表示する

ソース using UnityEngine; using System.Collections; using System.Collections.Generic; using System; using System.Diagnostics; #if UNITY_EDITOR using UnityEditor; #endif namespace Hiyayakko { [AttributeUsage(AttributeTargets.Field), Conditi…

sealed修飾子

継承したクラスやメソッドにsealed修飾子をつけると、 それ以上継承されなくなる。 これをつけないとインライン展開されないので、 こまめに設定するべき。