# ModelVisualizer

#### new Cesium.ModelVisualizer(scene, entityCollection)
DataSources/ModelVisualizer.js 41

  A `Visualizer` which maps `Entity#model` to a `Model`.

  Name | Type | Description
  --- | --- | ---
  `scene` | Scene | The scene the primitives will be rendered in.
  `entityCollection` | EntityCollection | The entityCollection to visualize.

### Methods

#### destroy()
DataSources/ModelVisualizer.js 192

  Removes and destroys all primitives created by this instance.

#### isDestroyed() → Boolean
DataSources/ModelVisualizer.js 185

  Returns true if this object was destroyed; otherwise, false.

  ##### Returns:

  True if this object was destroyed; otherwise, false.

#### update(time) → Boolean
DataSources/ModelVisualizer.js 68

  Updates models created this visualizer to match their Entity counterpart at the given time.

  Name | Type | Description
  --- | --- | ---
  `time` | JulianDate | The time to update to.

  ##### Returns:

  This function always returns true.