2011-06-16から1日間の記事一覧
Beginner/Essentialsのチュートリアルを見ている。 思い出しやすいように、以下に各章の内容をメモする。 Intermediate I01 – Raycasting function Update () { var up = transform.TransformDirection(Vector3.up); var hit : RaycastHit; Debug.DrawRay(tr…
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…
var theMaterial : Material; ... renderer.material = theMaterial;
transform.localScale = Vector3(2,2,2);