2012-10-01から1ヶ月間の記事一覧
positionではなく、localPositionだ。 *UnityのTime.timeScaleについて URL:http://docs.unity3d.com/Documentation/ScriptReference/Time-timeScale.html ドキュメントにある通り、 Time.timeScale = 0; などとやると、時間が止められるが、 ↓Updateは止ま…
URL:http://answers.unity3d.com/questions/153785/retrieving-the-name-of-the-animation-currently-pla.html”今、再生している”アニメーション名を取るのが標準で用意されていない?参考サイトのバグ修正して書いた var bestWeight = -1.0; var playing : …
今までこんなエラー出てた、 ↑Target Membershipにチェックがないのが原因だった。
例えばこんな関数があるときに、 var _callback:Function; public function Bar(_callback:Function) { _callback = callback; }hogeは先程のソースのインスタンスとして、 Barメソッドをこのように使う。 hoge.Bar(CallbackFunc); public function Callback…
Pythonのインストールを以下でやった場合 ./configure --prefix=/opt/python3.3.0このように指定 mkvirtualenv --python=/opt/python3.3.0/bin/python3.3 django_appっと思ったらpython3.3にはeasy_installがないからできない?? SyntaxError: invalid synt…
パーフェクトJavaScriptにあるようにSpiderMonkeyを使って、コマンドラインでJavaScriptを行える環境を釣る期待。・まず必要なgypを入れておく(Python製) git clone https://github.com/bnoordhuis/gyp.git cd gyp sudo python setup.py install※npm insta…
https://github.com/joyent/node/wiki/modules
URL:http://www.luscarpa.com/snippets/jenkins/start-stop-jenkins-daemon-on-mac-os-x/ ・起動 sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist・停止 sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist Amazon.co.jp…
foreverをインストールするっぽい URL:http://onlineconsultant.jp/pukiwiki/?node.js%20node.js%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%E3%82%92forever%E3%81%A7%E3%83%87%E3%83%BC%E3%83%A2%E3%83%B3%E5%8C%96%E3%81%99%E3%82%8B sudo npm instal…
Titaniumのビルドツールの実機実行 まず、provisionファイルを「development.mobileprovision 」という名前にし Titaniumプロジェクトファイルに/certs/フォルダ作ってその中に入れるっぽい。 make deploy platform=iphone cert=1
Velocity・・・速度 Mass・・・質量 Drag・・・空気抵抗 Gravity・・・重力 rigidbody.velocity += Physics.gravity * Time.deltaTime;
・全部のコンポーネントをなめて、もしあれば消す for(var c : Component in components) { if(c.name == "TweenPosition") Destroy(obj.GetComponent.<TweenPosition>()); } obj.AddComponent.<TweenPosition>(); ・とりあえず消す エラーにならない Destroy(obj.GetComponent.<TweenPosition>()); obj.Ad</tweenposition></tweenposition></tweenposition>…
頂点シェーダ ピクセルシェーダよりも上の概念 Unityオリジナルの概念 Microsoft・・・.fx nVidia・・・.cgfx マテリアル=シェーダに特定のパラメータを合わせたもの数値、カラー、テクスチャ、キューブマップ
http://www.maruko2.com/mw/Mac_OS_X_%E3%81%AE%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%E3%81%AE%E6%92%AE%E3%82%8A%E6%96%B9
private function OnSelectionChange( buttonName:String ) { }
http://as.wiley.com/WileyCDA/WileyTitle/productCd-1118172728,miniSiteCd-SYBEX,descCd-DOWNLOAD.html
↓.caf使うとこんなエラーが出ます。おそらく1.xでは出なかった気が・・・ 2012-10-22 07:14:18.901 papwa[9649:c07] Error loading /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:…
「UV Image/Editor」の画面のレイアウトを保存したい 「UVs」→「Export UV Layout」で保存する。
Smoothmoves.BoneAnimationのクラスには、animationDataというインスタンスメソッドがあるが、 その返り値はBoneAnimationData型だが、そのクラスのドキュメントがない・・。(2012/10/22現在) AnimationClipNameExists("string")で取れる。
このボタンを押せば選択した箇所がオレンジ色になります
・この素晴らしい入門書の方がお越しになりました Amazon.co.jp ウィジェットURL:http://atnd.org/events/32884 主催した勉強会7回目 UserPreferences > 3D View の Vertex Size を大きくすると頂点が大きく表示されて発表時に見やすい ・ 元々Unixよりのイ…
AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000C2C) 8.24-bit little-endian signed integer, deinterleaved 2012-10-19 10:36:58.761 papwa[2454:10a03] Error loading /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources…
MissingReferenceException: The object of type 'SphereCollider' has been destroyed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object.
function ShuffleIntAry( ary:int[] ) { for(var x:int in ary) { var i:int = Random.Range(0, ary.Length); var j:int = Random.Range(0, ary.Length); var tmp:int = ary[i]; ary[i] = ary[j]; ary[j] = tmp; } } ・使い方 var ary:int[] = [0, 1, 2, 3, …
import System.Linq; for (var _ in Enumerable.Range(0, 10)) { } System.Linq自体インポートできた。
公式URL:http://docs.unity3d.com/Documentation/Manual/AssetCacheServer.htmlポートは8125だ。 ここ参考 URL:http://blackcherrydm.com/blog/2012/03/09/unity3d-asset-cache-server-backgrounding-and-firewall/管理画面は、command+0で開いて、
参考URL:http://anchan828.tumblr.com/post/33637625924/unity-vps-assetserverさくらのVPSつかっているが、ファイヤーウォール使ってるので、 AssetServerは10733のポートが必要。 vim /etc/sysconfig/iptablesこれを追記 -A SERVICES -p tcp --dport 10733…
・旧 contentLayer->setIsRelativeAnchorPoint(true); ・v2.0 contentLayer->ignoreAnchorPointForPosition(false); ※falseになる
gistにあげた。 CCUIScrollView.h https://gist.github.com/3896764 CCUIScrollView.cpp https://gist.github.com/3896810 呼び方 ・ヘッダに追加して、 #include "CCUIScrollView.h" ・ここで呼ぶ CCUIScrollView *scrollView = CCUIScrollView::scrollView…