現時点で子どもがちょうど5ヶ月になる。
子育ては、やりながらノウハウが溜まっていくと実感している。
その中で、「これはもっと早く知っておけば良かった」と思ったものを記録しておく。
生後すぐは生活サイクルが変わって体力的なしんどさがある。
//originally adopted from | |
//http://answers.unity3d.com/questions/447701/event-for-unity-editor-pause-and-playstop-events.html | |
//with a few modifications which makes the event firing nicer and cleaner | |
//Usage Example : | |
// | |
//using UnityEditor; | |
//using UnityEngine; | |
// | |
//[InitializeOnLoad] | |
//public class SingleEntryPoint |
transform.DOScale(targetScale * 2, 1.0f).SetLoops(2, LoopType.Yoyo); |
2017/8/5 付で readthedocs に移動しました
This document has been moved to readthedocs since 8/5/2017
diff --git Makefile Makefile | |
index af87e95..04928f1 100644 | |
--- Makefile | |
+++ Makefile | |
@@ -1,5 +1,5 @@ | |
CC=gcc | |
-CFLAGS=-O6 -Wall | |
+CFLAGS=-O3 -Wall | |
#CFLAGS=-g | |
Unity 5 には Xcode Manipulation API が標準で搭載されており、これを使うことで、Unity の出力する Xcode プロジェクトを比較的簡単にカスタマイズすることができます。
ここでは例として、Unity から出力される Xcode プロジェクトの Info.plist ファイルを書き換えてみます。
下にある XcodeProjectUpdater.cs がそれです。このファイルを Editor ディレクトリ下に放り込んでおきます。すると、ビルド時に Info.plist を書き換えて、“TestEntry” というキーに “Hello” という値を設定します。見たそのまんまのシンプルな内容です。
鍵となるのは UnityEditor.iOS.Xcode に用意されている PlistDocument と PBXProject です。これらのクラスを使うことで、plist ファイルや Xcode プロジェクトファイルの書き換えが簡単に行えるわけです。
require 'date' | |
# 実際は ActiveSupport の機能をつかう | |
class Date | |
def beginning_of_month | |
self.class.new(self.year, self.month, 1) | |
end | |
end | |
class MonthlyEnumerator < Enumerator |
/* | |
* Copyright (c) 2014 @phi_jp | |
*/ | |
using System; | |
namespace tm.Extensions { | |
public static class StringExtensions { |