【3Dゲームエンジン】Unity質問スレッド25at GAMEDEV【3Dゲームエンジン】Unity質問スレッド25 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト722:名前は開発中のものです。 16/07/24 05:57:13.54 7pbGVSZg.net >>715 あー、なるほど Animatorに設定があるのは気づいてたんですが全然効かないのでなんでだろうと思ってたらRigの設定がHumanoidになってないとダメなのか・・・ ありがとうございます。 723:名前は開発中のものです。 16/07/24 14:31:08.66 8G5XycUJ.net すみません、超初心者なのですが、質問させてください。 public class Mycontrol : MonoBehaviour { Animator anim ; // Use this for initialization void Start () { anim = GetComponent<Animator>(); } // Update is called once per frame void Update () { if (Input.GetKey( 724:名前は開発中のものです。 16/07/24 14:33:24.63 8G5XycUJ.net あれ・・・文字数制限あるのか・・・書き込みすらうまくいかない。。。 725:名前は開発中のものです。 16/07/24 14:36:18.89 8G5XycUJ.net void Start () { anim = GetComponent<Animator>(); } // Update is called once per frame void Update () { if (Input.GetKey("right")) { transform.position += transform.forward * 0.1f; anim.SetBool("Run", true); } else { anim.SetBool("Run", false); } if (Input.GetKey("left")) { transform.position -= transform.forward * 0.1f; anim.SetBool("Run", true); } else { anim.SetBool("Run", false); } } } 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch