[ConfigSectionButton]

Attribute declares a section-specific toolbar button for ConfigEditorWindow.

Support Types

Type
Description

Method

Parameterless void method

Parameters

Parameter
Type
Description

sectionPath

string

Configuration section path this button belongs to (for example "Gameplay" or "Gameplay/Combat"). Must match the normalized section path used by [ConfigSection].

Order

int

Optional order of the button within its section toolbar group.

Examples

using RenownedGames.Apex;
using UnityEngine;

[ConfigWindow("Game Settings")]
public class GameSettings : ScriptableObject
{
    [ConfigSection("Gameplay")]
    public float difficulty;

    [ConfigSectionButton("Gameplay")]
    public void ResetGameplay()
    {
        difficulty = 1.0f;
        Debug.Log("Gameplay settings reset.");
    }
}

Last updated