Skip to content

Scene Selecter

[SceneSelecter] allows to select scene via convenient dropdown list.


Support Types

Type Description
Integer Saving selected scene id
String Saving selected scene name

Parameters

No parameters


Examples

[SceneSelecter]
public int menuSceneId;

[SceneSelecter]
public string menuSceneName;

Warning

SceneSelecter attribute load scenes from build settings. If build settings don't contain scenes, field will be disabled.

This is done in order to avoid the error that developers may make if they choose a scene that was not added to the settings.

Note

Make sure that you have added ApexInspector namespace in your script, to get access to all attributes.

using ApexInspector;


Demo

using ApexInspector;
using UnityEngine;

public class ExampleComponent : MonoBehaviour
{
    [SceneSelecter]
    public int value;
}

Live-demo

Live demo