r2mods/ilspy_dump/ror2_csproj/RoR2/RenderSettingsController.cs

26 lines
444 B
C#

using UnityEngine;
namespace RoR2;
public class RenderSettingsController : MonoBehaviour
{
public RenderSettingsState renderSettingsState;
[ContextMenu("Copy from current render settings")]
public void FromCurrent()
{
renderSettingsState = RenderSettingsState.FromCurrent();
}
[ContextMenu("Apply as current render settings")]
public void Apply()
{
renderSettingsState.Apply();
}
private void LateUpdate()
{
Apply();
}
}