2013-10-01から1ヶ月間の記事一覧
・Rails 3のエラー rails g model message body:stringでモデルを作ろうとすると、 Could not find gem 'mysql2 (>= 0) ruby' in the gems available on this machine. Run `bundle install` to install missing gems.のエラー・Gemfile #gem 'mysql2' gem '…
NGUIのTween機能のUITweenerについて、 再生を普通の再生と逆再生ができる。fowardのオプションが引数のbool型だったので、 myTweenをUITweenerとすると、 普通の向きの再生は、 myTween.Play (false); 逆の向き(foward)の再生は、 myTween.Play (true);
UIButtonMessageを使わなくてもできる EventDelegateのリストで複数設定できるが、1つでもOK。MonoBehaviourの変数はtargetMono UIButtonの変数はmyButton List<EventDelegate> list = new List<EventDelegate>(); EventDelegate del = new EventDelegate (); del.target = targetMono; del</eventdelegate></eventdelegate>…
AIのプラグイン。 githubのURL: https://github.com/ricardojmendez/UnitySteerYouTubeのURL: http://www.youtube.com/watch?v=4ULDER6zJnU
URL: http://wiki.unity3d.com/index.php/Flockingボイドの動きのサンプルコードが有る。 残念ながら、普通のまともなエンジニアなら選択しないUnityScriptというもの。 コード自体も誤りが多く、さすがUnityScriptのコードだ。 現状は私が修正したコードが…
URL: http://docs-jp.unity3d.com/Documentation/Components/class-MovieTexture.html Play ()がないと怒られる↓ こっちが正しい? URL: http://docs.unity3d.com/Documentation/ScriptReference/MovieTexture.Play.html using UnityEngine; using System.Co…
Manifest.xmlからAndroidManifest.xmlへコピーして完璧だと慢心していてると、 「FacebookTestScene」シーンサンプルの FacebookAndroid.showDialog( "stream.publish", parameters ); が動かないのに、 FacebookAndroid.showFacebookShareDialog( parameter…
<hash> <error>Desktop applications only support the oauth_callback value 'oob'</error> <request>/oauth/request_token</request> </hash> の謎のエラー。 URL: http://forum.unity3d.com/threads/92154-Prime31-Android-Plugins-Officially-Live!/page42以前自分で聞いたフォーラムが出た! TwitterのD…
Objective-Cでは、メソッドを呼ぶときに各変数の名前を書かせるのを矯正されるが、 C#も同じような書き方ができた。 using UnityEngine; using System.Collections; public class NewBehaviourScript : MonoBehaviour { void Start () { Hoge (intVal:1, str…
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
URL: https://www.assetstore.unity3d.com/#/content/10989Prime31とかが今までUnityのPluginを出していたが、これはFacebookが公式に出してるっぽいので試す。ドキュメントURL: https://developers.facebook.com/docs/unity/すでにAssetStoreからインストー…
GameObjectを渡して、親をさかのぼってComponentを探せる UIRoot mRoot = NGUITools.FindInParents<UIRoot> (gameObject);</uiroot>
URL: http://chiyoworks.blogspot.jp/2013/05/storyboard-scrollview.html UIScrollViewの中にContentViewを入れる。 ContentViewってのは、サブViewにしたUIViewとかImageViewとかと思う・・。ちなみに、UIScrollViewに対してはこのコードを書いている - (v…
string buttonName = UIButton.current.name;
UIMessageを使わない方法 List<EventDelegate> list = new List<EventDelegate>(); EventDelegate myDelegate = new EventDelegate (); myDelegate.target = targetMono; myDelegate.methodName = "L1"; list.Add (myDelegate); myButton.onClick = list; 【補足】 myDelegateはEventDelega</eventdelegate></eventdelegate>…
Launching simulator process failed Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI. このエラーが出て直らない。 Titaniumはもうオワコンかな? 起動ができないと話にな…
void CreateTextureWithoutData () { // Create a new 2x2 texture ARGB32 (32 bit with alpha) and no mipmaps Texture2D texture = new Texture2D (2, 2, TextureFormat.ARGB32, false); // set the pixel values texture.SetPixel(0, 0, new Color(1.0f, …