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貼ってたのが原因だった