The Scene Settings API provides access to the settings of the currently loaded scene.

Hierarchy

  • Events
    • SceneSettings

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Checks if path exists. See the SceneSettings overview for a full list of properties.

    Parameters

    • path: string

      The path

    Returns boolean

    True if path exists

    console.log(editor.settings.scene.has('render.fog'));
    
  • Sets value at path. See the SceneSettings overview for a full list of properties.

    Parameters

    • path: string

      The path

    • value: any

      The value

    Returns boolean

    Whether the value was set

    editor.settings.scene.set('render.fog', 'none');