万年素人からHackerへの道

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

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

    setuptoolsのインストール

    setuptoolsがないと怒られるのでいれる

    cd /tmp
    curl -O http://peak.telecommunity.com/dist/ez_setup.py
    sudo python ez_setup.py

    Unityでの2Dアニメーション

    ・Animating_Tiled_texture_-_Extendedよさげ
    http://www.unifycommunity.com/wiki/index.php?title=Animating_Tiled_texture_-_Extended
    JSのソース「AnimatedTextureExtendedUV.js」と顔のサンプル画像「ACellSheet.jpg」

    http://www.youtube.com/watch?v=-fglYXTkNyc
    使い方のYouTube

    →つかいかた
    1.「Hierarchy」にCubeなど作成
    2.「Project」→「Materialsフォルダ」へMaterialを作成して、テクスチャ「ACellSheet.jpg」を適用
    3.1で作成したCubeへ2のMaterialを適用
    4・AnimatedTextureExtendedUV.jsを「Project」Scriptsへ格納し、1で作成したCubeへ適用

    このままだと「You probably need to add a Renderer to the game object "GameObject". Or your script needs to check if the component is attached before using it.」のエラー

    解決
    http://unity3d.com/support/documentation/ScriptReference/Material.SetTextureOffset.html
    ↑Material.SetTextureOffsetのドキュメント

    http://answers.unity3d.com/questions/135764/there-is-no-renderer-attached-to-the-game-object.html
    ↑解答はあるが、なおらない
    →関係ないオブジェジェクトにJS貼ってたのが原因だった