コード例 #1
0
        void OnEnable()
        {
            monoBehaviour = (MonoBehaviour)target;
            if (!EditorPrefs.HasKey(monoBehaviour.GetInstanceID() + "-SimpleNote-Title"))
            {
                EditorPrefs.SetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Title", "Title Here");
                EditorPrefs.SetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Note", "Note Here");
            }

            title = EditorPrefs.GetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Title", "Title Here");
            note = EditorPrefs.GetString(monoBehaviour.GetInstanceID() + "-SimpleNote-Note", "Note Here");
        }
コード例 #2
0
ファイル: SYS_MASTER.cs プロジェクト: mcneproj/UnitySysAPI
 public static void LogCode(string messageCode, MonoBehaviour M, bool showInConsole)
 {
     Log(messages[messageCode].ToString() + " from " + M.ToString() + " ID# " + M.GetInstanceID(), showInConsole);
 }