2012-09-01から1ヶ月間の記事一覧
gistにあがってた。 https://gist.github.com/2425709基本的にAssetPostprocessorクラスを継承してコードを記載して、「Editor」ディレクトリに入れて使うようだ。・Androidはこうした void PreprocessAndroidPlatformImages() { TextureImporter importer =…
2DなのにColliderの判定のためにRigidbody使うと、Y軸が微妙にずれることがある。 そうするには、「Is Kinematic」にチェック
フォーラムで、keijiroさんのunity-adbanner-exampleで使えなかった人に対して、リンクがついてたのでたまたま見つけた。↓ここのフォーラムの添付のがいい MicroEyesさんが添付しているAdmobProject.zip(Android用です) http://forum.unity3d.com/threads/…
UIRootのManual Heightこれで縦に640なのがベストだと思う。iPhoneはこれでいい。 Androidはこれがベストだが、機種によっては微妙なこともあるっぽい。 Automaticなのは外す。
URL: https://github.com/GarageGames/Torque3Dgithubから git clone https://github.com/GarageGames/Torque3D.gitTorque3d is an engine that publishes for one platform. ってあるのでPCだけ?
Airだとカメラが勝手に認識してくれる ・GameSceneシーン Planeがグリッドを位置している。 Player1Cursor・・・その名の通りプレイヤー1のカーソル Player2Cursor・・・その名の通りプレイヤー2のカーソルAndroidに移す時の注意 →Levelが9なので8に落とさな…
URL:https://github.com/keijiro/unity-adbanner-example https://github.com/keijiro/unity-adbanner-example/tree/master/Sample/Assets/Plugins からAdBannerObserver.csをRawファイルのDLで入手→UnityのPluginsフォルダへhttps://github.com/keijiro/uni…
string message = "日本語"; TwitterAndroid.postUpdate(message); これだと文字化けして???になる。http://www.tagindex.com/tool/url.html このサイトとかでエンコードして string message = WWW.UnEscapeURL("%e6%97%a5%e6%9c%ac%e8%aa%9e"); こんなかん…
このTwitterのDeveloperサイトにコールバックの設定がいる。 Read, Write and Access direct messages にしないとツイートできない
・CakeFileわかりやすい http://d.hatena.ne.jp/nodamushi/20110422/1303508131
・このようにイベントに登録したメソッドにyieldを入れてる時はダメっぽい function Start() { FacebookManager.dialogCompletedEvent += MethodName; } function MethodName() { // ここにyieldがあると動かないことがある var www:WWW = "http://hoge.com"…
今更ながらメモ/etc/ssh_config に追加 Host * ServerAliveInterval 60
cd ~/.vim/syntax/ curl -O http://www.fleiner.com/vim/syntax_60/java.vim
String.IsNullOrEmpty(調べたい文字) http://www.atmarkit.co.jp/fdotnet/dotnettips/480isstringnull/isstringnull.html これが便利・空文字("")はnullではない。 var hogeStr:String = ""; if (hogeStr == null) { Debug.Log("hogeStr is null"); } else…
・Python AWSの環境 mkvirtualenv paws・euca2oolsのインストール http://www.cameronstokes.com/2010/05/11/installing-euca2ools-on-mac-os-x/ git clone https://github.com/eucalyptus/eucalyptus.git ./configure→cannot find WSDL2C.sh!WSDL2C.shって…
URL:http://cp1.nintendo.co.jp/ヒントもあった:http://d.hatena.ne.jp/xef/20120916/p1"*"が6桁と思ってこれで総当たりしたが、 for x in range(100000, 999999): if pow(x, 17) % 3569 == 915: print str(x) この範囲か! http://cp1.nintendo.co.jp/mini…
cp /Developer/android-sdk-macosx/platform-tools/adb /Developer/android-sdk-macosx /tools これもだめだなhttp://akabeko.me/blog/2010/11/titanium-aptana-mobile/
けいごさんが実験済み http://anchan828.tumblr.com/post/26810280713/unity-monodevelop-sublime-text-2vimキーバインド使える記事もある http://dev.ariel-networks.com/wp/archives/2208
メソッドを他のクラスに委譲したいけどよくわっかんない。 UnityScriptはFunctionをそのまま引数に渡せるので楽。 例えば→ http://d.hatena.ne.jp/shinriyo/20120730/p3しかし、C#はちがう。 ゲームを管理しているクラスでポイントの追加をしたいが、弾であ…
http://gigi-net.hatenadiary.com/entry/20111222/1324541519参考になる Cakefileはコンパイルするディレクトリの直下に作る。 SampleGameの内容は、game.coffee Playerの内容は、player.coffee に記載し、 srcディレクトリの直下に配置する。
URL:http://2012.pycon.jp/Tornadoで分散KVSフレームワーク 自己完結しているNode上で VartesベースでTornado Non-blockingで。 Frienddfeed Nginxと組み合わす。 CPUのコア数に合わせて、インスタンスを作って動かす。 Djangoより圧倒定期に早い HTTPSで簡…
まとめ: http://kashewnuts-tech.blogspot.jp/2012/09/pyconjp2012.html2012/09/15(土) mitsuhikoの基調講演Cango Cult Programming使えるDjango1.4 SO101djangoproject.jpつかわれてる Disqus Instagram 写真 Mozilla >Pyramidになる? bitbackerequestをU…
→今後まとめようか・・・Monotと.NETのバージョン対応 http://www.mono-project.com/Compatibility.NET 4.0 Mono 2.10.8.(2011/12/19).NET 3.5.NET 3.0 .NET 3.0 .NET 2.0 .NET 1.1 Mono 2.6.5(2010/?/?)・・・Unity 3.5.4 Mono 2.6(2009/12/15)・・・Unity …
Amazon.co.jp ウィジェット
C#ではyield 5;かyield return 5;とかで出来るらしい?(未確認)しかし、UnityScriptでこうやったがだめだった。 while(hoge == true) { yield 5; } しゃあないので、こうした。 while(hoge == true) { for(var i:i<5;i++) { yield; } }
http://freegamedev.net/wiki/Free,_cross-platform,_real-time_3D_engines足りないTruevision3DShiva3D
using UnityEngine; using System.Collections; private class NewBehaviourScript : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { } } 結果 error CS1527: Namespace elements …
Python Python は中心となる乱数生成器として Mersenne Twister http://www.python.jp/doc/2.5/lib/module-random.htmlPHP rand()・・・libc の乱数発生器を使用 http://www.php.net/manual/ja/function.rand.phpmt_rand・・・Mersenne Twisterアルゴリズム …
クラスを書かずにこれはだめ↓ private var _bar:boolean; function get bar():boolean { return _bar; } >|actionscript| class Hoge extends MonoBehaviour { private var _bar:boolean; function get bar():boolean { return _bar; } }
[DllImport ("__Internal")]http://docs.unity3d.com/Documentation/Manual/Plugins.html公式にあった