add live framerate setting
This commit is contained in:
@@ -12,6 +12,8 @@ public class LiveViewerUI : MonoBehaviour
|
||||
|
||||
public RectTransform BottonUITransform;
|
||||
|
||||
public Dropdown FrameRateDropDown;
|
||||
|
||||
float targetHeight = 0;
|
||||
float height;
|
||||
private void Awake()
|
||||
@@ -45,4 +47,9 @@ public class LiveViewerUI : MonoBehaviour
|
||||
{
|
||||
targetHeight = -height;
|
||||
}
|
||||
|
||||
public void SetFrameRate(int fps)
|
||||
{
|
||||
Application.targetFrameRate = int.Parse(FrameRateDropDown.options[fps].text);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user