Hide
Scene

A dropdown selector for a scene in the build list, plus "Edit Scenes In Build..." option to directly open the "Build Settings" window where you can change building scenes.

Parameters:

  • bool fullPath = false: true to use the full-path name, false to use the scene name only. Useful if you have the same scene name under different path. Only works for string field type.

  • AllowMultiple: No

using SaintsField; [Scene] public int _sceneInt; [Scene] public string _sceneString; [Scene(true)] public string _sceneFullPath;

image

It can work with ShowInInspector

[ShowInInspector, Scene] private string sceneSRaw { get => sceneS; set => sceneS = value; }

It can work with ShowInInspector/Button parameters and return value

[ShowInInspector] private (int i, string s) ButtonParamScene([Scene] int sceneI, [Scene] string sceneS) { return (sceneI, sceneS); } [Button] private (int i, string s) ButtonParamScene([Scene] int sceneI, [Scene] string sceneS) { return (sceneI, sceneS); }