ScopeTweaks/CameraResolutionScale/DisableFOVScaling.cs
2022-09-17 19:49:55 +02:00

22 lines
564 B
C#

using EFT.UI;
using UnityEngine;
namespace CameraResolutionScale
{
public class DisableFOVScaling
{
public SelectSlider getFOVSelectSlider()
{
string rootObjectPath = "Common UI/Common UI/SettingsScreen";
GameObject rootObject = GameObject.Find(rootObjectPath);
string fovObjectPath = "Game Settings/Image/Other Settings/FOV/FOV";
GameObject fovObject = rootObject.transform.Find(fovObjectPath).gameObject;
return fovObject.GetComponent<SelectSlider>();
}
}
}