Version: 2021.1
言語: 日本語
public float frameRate ;

説明

キーフレームがサンプリングされるときのフレームレート(読み取り専用)。

This is the frame rate that was used in the animation program you used to create the animation or model.

using UnityEngine;
using System.Collections;

public class ExampleScript : MonoBehaviour { public Animation anim;

void Update() { // Prints the frame rate of the animation clip to the console print(anim["walk"].clip.frameRate); } }