2013-04-01から1ヶ月間の記事一覧
・OpenGL 1.0 <uses-feature android:glEsVersion="0x00010001" /> ・OpenGL 2.0 <uses-feature android:glEsVersion="0x00020000" /></uses-feature></uses-feature>
C# public class HogeClass : EditorWindow { [MenuItem("Assets/Hoge Class")]
string.Format("foo{0}bar", 3) // => 'foo3bar' string.Format("{0} × {1} = {2}", 3, 4, 3 * 4); // => '3 × 4 = 12'
URL: http://msdn.microsoft.com/ja-jp/library/s8s7t687 String.Format("{0:N3}", 10000.123)
https://developer.apple.com/library/ios/releasenotes/StoreKit/IAP_ReceiptValidation/VerificationController.zip
adb shell am start -a android.intent.action.MAIN -n jp.hoge.packagename/.ActivityNamejp.hoge.packagename・・・パッケージ名 .ActivityName・・・アクティビティ名アクティビティ名はパッケージ名と同じ時だけ「.Hoge」のようにできる。 カレントディ…
URL: http://stackoverflow.com/questions/5335197/gits-famous-error-permission-to-git-denied-to-新ユーザでSSHキーを作ったら、・SSHの追加 ssh-add ~/.ssh/rsa_hogeこれが必要。 ~/.ssh/id_rsaという名前で必ずしも作るのではなくて随時追加できるっぽ…
URL: http://doradick.blog108.fc2.com/blog-entry-983.htmlキーチェーンを削除して追加した
int amount = 100; string ans = String.Format("{0:#,0}", amount); このamountは文字列にしたら出来ない!
string types not allowed (at 'configchanges'android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" の中にある、「screenSize」と「smallestScreenSize」を外そう。 新しいAndroid APIにしか…
URL: http://docs.unity3d.com/Documentation/ScriptReference/Animation.Sample.htmlおそらく using UnityEngine; using System.Collections; public class example : MonoBehaviour { void Example() { animation["MyClip"].time = 2.0F; animation["MyCli…
Amazon.co.jp ウィジェット上記の本とかで、eval() is "evil"(eval()は悪)とか言われるが、 UnityScriptもJavaScriptを謳ってるし、ActionScriptにも似てるから調べた。あった。 URL: http://answers.unity3d.com/questions/7885/interpret-unityscript-at…
static変数に値を入れたまま GameObjectをDestroyしても変数の内容は生きています。 なので、OnDestroyなどで変数を初期化しましょう。
if (this.gameObject.active) { } とするとエラーになるので、 キャッシュしておく _myGameObject = ScoutFree;
http://radiumsoftware.tumblr.com/post/13288868429
https://sites.google.com/a/techdoctranslator.com/jp/android/guide/manifest/activity-element
keijiroさんのプラグインを使ってたアイコンが2つ出る現象が発生・・。 http://shun1adhocblog.wordpress.com/2012/09/21/android%E3%82%A2%E3%83%97%E3%83%AA%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%BF%E3%81%9F%E3%82%89%E3%80%81activity%E3%81%AE%E6%95%B0%…
Mainのカメラ限定 Camera.main.enabled = false;
よく忘れるのでメモGoogle アカウントにログインします。 URL: https://www.google.com/accounts/Login?hl=ja1 2 3 4
SocialNetworking/P31MutableOauthRequest.m をいじる? http://prime31.com/support/754/twitter-post-failed-could-not-authenticate-with-oauth
string[] myKeys = myHashtable.Keys; Debug.Log(myKeys); myKeysはなぜか空このサイトを参考にした URL: http://www.java2s.com/Tutorial/CSharp/0220__Data-Structure/CopythekeysfromHashtableintoanarrayusingtheCopyTomethodandthendisplaythearraycont…
「モトスミHack vol.34」に参加した http://connpass.com/event/2111/目的は悩ましい問題を解決しに1. Rails4 beta1でハマったエラー「ActiveModel::ForbiddenAttributesError」うぜ!!! ・問題のコード def create @train = Train.find(params[:train_id]…
jsonDataにJasonData型の型の値が入ってるとする。 List<String> keyHashTable = ((jsonData as IDictionary).Keys); String keyStr = keyHashTable.Last(); // Invalid Cast Exception 必ずジェネリックスしよう! String keyStr = keyHashTable.Last<String>();</string></string>
twitter-bootstrap-railsを使ってると Train Load (0.2ms) SELECT "trains".* FROM "trains" WHERE "trains"."id" = ? LIMIT 1 [["id", "favicon"]] Completed 404 Not Found in 3ms ActiveRecord::RecordNotFound (Couldn't find Train with id=favicon): a…
※System.Collections.Generic.ListのList Lengthです。カッコ要らない。 hogList.Count