2011-06-16から1日間の記事一覧

チュートリアル unity3dstudent

Beginner/Essentialsのチュートリアルを見ている。 思い出しやすいように、以下に各章の内容をメモする。 Intermediate I01 – Raycasting function Update () { var up = transform.TransformDirection(Vector3.up); var hit : RaycastHit; Debug.DrawRay(tr…

unity3d destructor デストラクタ

function OnDisable(){ Debug.Log('dtor!'); } OnEnable This function is called when the object becomes enabled and active. OnDisable This function is called when the behaviour becomes disabled () or inactive. http://unity3d.com/support/docum…

unity3d material set マテリアル 動的に変更

var theMaterial : Material; ... renderer.material = theMaterial;

unity3d スケーリング scaling scale

transform.localScale = Vector3(2,2,2);