Show / Hide Table of Contents

Constructor Scene

Scene()

Initializes a new instance of the Scene class.

Declaration
public Scene()
See Also
LoadAsync()

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.1
Relevant samples
Feature layer rendering mode (scene): Render features in a scene statically or dynamically by setting the feature layer rendering mode.
Scene layer (URL): Display an ArcGIS scene layer from a URL.

Scene(Basemap)

Initializes a new instance of the Scene class with a Basemap.

Declaration
public Scene(Basemap basemap)
Parameters
Type Name Description
Basemap basemap

The basemap for the scene.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.0 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.1
Relevant samples
Add an integrated mesh layer: View an integrated mesh layer from a scene service.
Change atmosphere effect: Changes the appearance of the atmosphere in a scene.
Choose camera controller: Control the behavior of the camera in a scene.

Scene(BasemapStyle)

Initializes a new instance of the Scene class with a BasemapStyle.

Declaration
public Scene(BasemapStyle basemapStyle)
Parameters
Type Name Description
BasemapStyle basemapStyle

Style of the basemap.

Remarks

These basemaps are secured and access requires either an ApiKey or a named user.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.10 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Android100.10 - 100.15
iOS100.10 - 100.15
UWP100.10 - 200.1

Scene(SceneViewTilingScheme)

Initializes a new instance of the Scene class with a specific tiling scheme.

Declaration
public Scene(SceneViewTilingScheme tilingScheme)
Parameters
Type Name Description
SceneViewTilingScheme tilingScheme

The tiling scheme to use for tiled layers.

Remarks

The tiling scheme determines which cached tiled services can render in this scene.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.3 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.3 - 100.15
iOS100.3 - 100.15
UWP100.3 - 200.1

Scene(Uri)

Initializes a new instance of the Scene class with a Uri to a web scene.

Declaration
public Scene(Uri uri)
Parameters
Type Name Description
Uri uri

Uri of the web scene on ArcGIS Online or ArcGIS Enterprise portal.

Remarks

If the specified Uri is a portal item URL , the underlying PortalItem will be created and accessible through Item. The uri may be a direct Uri to webscene JSON content or the Uri of a portal item.

Examples of supported URL formats:

  • The Scene Viewer Classic, for example: https://www.arcgis.com/home/webscene/viewer.html?webscene=579f97b2f3b94d4a8e48a5f140a6639b
  • The web scene item details page, for example: https://www.arcgis.com/home/item.html?id=579f97b2f3b94d4a8e48a5f140a6639b
  • The REST sharing API data, for example: https://www.arcgis.com/sharing/rest/content/items/579f97b2f3b94d4a8e48a5f140a6639b/data
  • The REST sharing API page (with or without the query parameter f=json), for example: https://www.arcgis.com/sharing/rest/content/items/579f97b2f3b94d4a8e48a5f140a6639b?f=json

See Also
PortalItem
Item

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.3 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.3 - 100.14
iOS100.3 - 100.15
UWP100.3 - 200.1

Scene(Item)

Initializes a new instance of the Scene class a portal item of type WebScene.

Declaration
public Scene(Item item)
Parameters
Type Name Description
Item item

The web scene item. Only PortalItem is supported.

Remarks

The PortalItem automatically loads when the Scene loads. If the loaded Item is not a portal item of type WebScene, the scene fails to load.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.1
.NET 6.0100.13 - 200.1
.NET 6.0 Windows100.13 - 200.1
.NET 6.0 Android200.0 - 200.1
.NET 6.0 iOS200.0 - 200.1
.NET Framework100.3 - 200.1
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.3 - 100.15
iOS100.3 - 100.15
UWP100.3 - 200.1
In This Article
Back to top Copyright © 2022 Esri.