Skip to content

crescent3983/GraphicsTuner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphics Tuner

中文版說明

Quick tuning graphics settings of Unity.

Compatibility

Only tested with below versions but may be compatible with other versions.

Version
Unity 2018.4.x
Unity 2020.3.x

Usage

  1. Use whole project or copy Assets/GraphicsTuner to your project

  2. Add to Scene

    Create)

    Anchor

  3. Play

    Run

Customization

You can change the layout or add new components depend on your need.

void Start() {
    var tuner = GraphicsTuner.Instance;
    if (tuner == null) return;

    var setting = tuner.CreateCustomSettings("Custom");
    setting.CreateToggle(
        "HDR",
        () => Camera.main.allowHDR,
        (v) => Camera.main.allowHDR = v
    );
}

Module Layout

public void SetActive(bool active);
public void SetAnchor(ComponentAnchor anchor);
// Change setting of built-in modules
var tuner = GraphicsTuner.Instance;
tuner.BasicSetting.SetActive(false);
tuner.TierSetting.SetActive(false);
tuner.QualitySetting.SetAnchor(ComponentAnchor.Left);

Components

  • UIConsoleSlider

    UIConsoleSlider CreateSlider(string title, float[] values, Func<float> getter, Action<float> setter, Action<float> onChange = null);

    Slider

  • UIConsoleDropdown

    UIConsoleDropdown CreateDropdown(string title, string[] values, Func<int> getter, Action<int> setter, Action<int> onChange = null);
    UIConsoleDropdown CreateDropdown(string title, Type type, Func<int> getter, Action<int> setter, Action<int> onChange = null);

    Dropdown

  • UIConsoleToggle

    UIConsoleToggle CreateToggle(string title, Func<bool> getter, Action<bool> setter, Action<bool> onChange = null);

    Toggle

  • UIConsoleLabel

    UIConsoleLabel CreateLabel(string title, out Action<string> setter);

    Label

About

Quick tuning graphics settings of Unity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages