Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Selectable.animator

マニュアルに切り替える
public Animator animator;

説明

GameObject の Animator コンポーネントを取得するための便利関数。

using UnityEngine;
using System.Collections;
using UnityEngine.UI; // Required when Using UI elements.

public class ExampleClass : MonoBehaviour { private Animator buttonAnimator; public Button button;

void Start () { //Assigns the "buttonAnimator" with the button's animator. buttonAnimator = button.animator; } }