BITFALL/Assets/MagicaCloth2/Example (Can be deleted)/Common/Scripts/TargetFPS.cs

26 lines
425 B
C#
Raw Normal View History

2024-03-18 18:20:23 +08:00
// Magica Cloth 2.
// Copyright (c) 2023 MagicaSoft.
// https://magicasoft.jp
using UnityEngine;
namespace MagicaCloth2
{
public class TargetFPS : MonoBehaviour
{
public int frameRate = 60;
void Start()
{
#if !UNITY_EDITOR
Application.targetFrameRate = frameRate;
#endif
}
// Update is called once per frame
void Update()
{
}
}
}