青空の月

PHP, Unity, C#, アプリ開発関連について。

2013-03-06から1日間の記事一覧

オブジェクトの階層を全て広げる

階層が深くなってしまった場合、 アイテムを全て開げるときにALTボタンを押したままにすると、 ネストされた階層も強制的に全て広げる。 http://gamesonytablet.blogspot.jp/2012/09/unity-wiki181.html

Debug.Log の豆知識

Debug.Logや関連メソッドを使用するとき、 スクリプトのインスタンスを渡すことで ログ出力をクリックしてそのオブジェクトをエディタ上で選択状態にできる Debug.Log("This",this); http://gamesonytablet.blogspot.jp/2012/09/unity-wiki181.html

colorの初期化

Color.clearは RGBA is (0, 0, 0, 0) つまり、黒の透明になる。 http://unity3d.com/support/documentation/ScriptReference/Color-clear.html

ケリ姫スイーツみたく背景を動かす

renderer.material.SetTextureOffseを使うと簡単に実装できる。http://docs.unity3d.com/Documentation/ScriptReference/Material.SetTextureOffset.html using UnityEngine; using System.Collections; public class example : MonoBehaviour { public floa…

はてなブログでsyntaxhighlighterを使う

サイドバーにHTMLを追加して以下を入力。 // 記事を書くときにHTML編集でpreタグでコードを記述。対象言語はclassで指定する <pre class="brush:js;"> //コードを記述</pre> 対象言語を増やしたい時は読み込むjsファイルを増やせばOK。 https://github.com/alexgorbatchev/SyntaxHighlight…

画像てすと

てすと

test

test unity公式サイト http://japan.unity3d.com/unity/ //