万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

  • ・資産運用おすすめ
    10万円は1000円くらい利益
    資産運用ブログ アセマネ
    • ・寄付お願いします
      YENTEN:YYzNPzdsZWqr5THWAdMrKDj7GT8ietDc2W
      BitZenny:ZfpUbVya8MWQkjjGJMjA7P9pPkqaLnwPWH
      c0ban:8KG95GXdEquNpPW8xJAJf7nn5kbimQ5wj1
      Skycoin:KMqcn7x8REwwzMHPi9fV9fbNwdofYAWKRo

    矩形で使うRect Unity

    URL: http://docs.unity3d.com/Documentation/ScriptReference/Rect.html

    残念ながらUnityScriptでメモ

    #pragma strict
    
    import System.Collections;
    
    public class RestTest extends MonoBehaviour
    {
        private var rect : Rect = Rect(4, 7, 10, 13);
        function Start()
        {
            Debug.Log(rect.x); // => 4
            Debug.Log(rect.left); // => 4
    
            Debug.Log(rect.y); // => 7
            Debug.Log(rect.top); // => 7
    
            Debug.Log(rect.width); // => 10
            Debug.Log(rect.height); // => 13
        }
    }
    

    x=left
    y=7
    のようだ。