View state

You can subscribe to events to get notified about state changes to layers, elevation sources, and the view. The following events, for example, can be used to help you determine if there is a problem with your scene or to make user interface updates.

These events will return the current state of the content in the view through ArcGISViewState, ArcGISLayerViewState, ArcGISElevationSourceViewState, and ArcgisDrawStatus objects. These state objects contain a combined status to indicate, for example, that a specific layer is not visible or has a warning. Additional information from some of these objects can be obtained by calling GetMessage() when the status is an error or a warning.

ArcGIS View State Logging Component

To subscribe to the events and print status messages (for example, layer view status messages) to the Console:

You can attach the ArcGIS View State Logging to the ArcGIS Map game object by taking the following steps.

  1. Click the ArcGIS Map game object in the Hierarchy window.
  2. In the Inspector window, click the Add Component button.
  3. Search for ArcGIS View State Logging and select it to attach the component.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close