Skip to content

Editor Window & Preview Component

Kenneth Hurley edited this page Jan 28, 2019 · 4 revisions

Editor Window

The pop-up window and properties of the Editor Window can be accessed via the Windows->Preview Generator menu item in Unity.

The Editor Window saves settings under the ProjectSettings diretory of the project as PreviewGeneratorSettings.json.

The settings in both the Editor Window and the Preview Component are exactly the same. Your can access the documentation for the Settings on the Property Settings page.

Editor Window Image

Preview Component

The Preview Generator Component is a script (PreviewGeneratorComponent.cs) that uses the same code base as th Editor Window to store information in a prefab or GameObject in the scene.

This data is serialized into the GameObject or Prefab and you can attach the component to any GameObject, i.e. Sprite Object, 3D Model Object, Prefab, etc.

Your can access the documentation for the Settings on the Property Settings page.

Editor Window Image