[SceneSelecter]

Displays a string field with a dropdown to select scenes from Build Settings.

Support Types

Type
Description

string

Scene name

int

Scene build index

Parameters

Parameter Name
Arguments
Description

Searchable

bool

Allow the user to search for scenes.

SelectOnly

bool

Only allow the user to select a scene from the dropdown list. When false, shows "Add Scene..." option to open Build Settings.

FilterScenes

string[]

Scene names to filter from the dropdown list.

FilterMode

SelectorFilter

Filter mode to apply to the scenes.

Examples

using UnityEngine;
using RenownedGames.Apex;

public class SceneSelecterExample : MonoBehaviour
{
    [SceneSelecter]
    public string sceneName;

    [SceneSelecter(Searchable = true)]
    public string searchableScene;

    [SceneSelecter(SelectOnly = true)]
    public string existingSceneOnly;
}

Last updated