프레임 수치 조절 스크립트 추가 및 디렉토리 경로 설정을 위한 스크립트 추가
- 윈도우에서 경로 설정 노출 팝업창 기능을 사용하기 위해 Project Settings > Other Settings > Configuration > Api Compatibility Level = .Net Framework로 변
This commit is contained in:
13
Assets/Scripts/FrameCounter.cs
Normal file
13
Assets/Scripts/FrameCounter.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class FrameCounter : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
[Range(0, 120)]
|
||||
int frame = 60;
|
||||
|
||||
void Start()
|
||||
{
|
||||
Application.targetFrameRate = frame;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user