ScopeTweaks/CameraResolutionScale/DisableFOVScaling.cs

22 lines
564 B
C#
Raw Normal View History

2022-09-17 19:49:55 +02:00

using EFT.UI;
using UnityEngine;
2022-09-16 13:24:26 +02:00
namespace CameraResolutionScale
{
2022-09-17 19:49:55 +02:00
public class DisableFOVScaling
2022-09-16 13:24:26 +02:00
{
2022-09-17 19:49:55 +02:00
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>();
}
2022-09-16 13:24:26 +02:00
}
}