12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class OpenXRCamera : MonoBehaviour
- {
- public static OpenXRCamera Instance;
- public Transform head;
- void Awake()
- {
- if (Instance)
- {
- DestroyImmediate(gameObject);
- return;
- }
- Instance = this;
- Invoke("setFrame",3f);
- }
- void setFrame()
- {
- Application.targetFrameRate = 200;
- }
- }
|