(:3[kanのメモ帳]

個人ゲーム開発者kan.kikuchiのメモ的技術ブログ。月木更新でUnity関連がメイン。

(:3[kanのメモ帳]


本ブログの運営者kan.kikuchiが個人で開発したゲームです!

    

Animationsへのアクセス【Unity】


このエントリーをはてなブックマークに追加


Animationsへのアクセス


Animationの中にあるAnimations、これのElement、つまりAnimationClipを取得したかったので調べてみると情報発見!
How to select an animation clip by index number? - Unity Answers




こんな感じでforeachでanimation自体を回すとanimationsにアクセス出来るとのこと。



さらにAnimationClipの名前をシンプルに変更しようとしたのがこちら




名前変更前
f:id:kan_kikuchi:20140503135106p:plain
名前変更後
f:id:kan_kikuchi:20140503135108p:plain

同じ名前を設定すると片方消える見たいですね| ू‾᷄ω‾᷅)