22 lines
564 B
C#
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>();
|
|
}
|
|
}
|
|
}
|