7
2024
Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI

Testing about creating Scene Preview image from Scene Camera view, when scene is saved
and then display that preview image when scene is selected!
Resources:
– https://docs.unity3d.com/ScriptReference/SceneManagement.EditorSceneManager-sceneSaved.html
– https://docs.unity3d.com/ScriptReference/Editor.OnPreviewGUI.html
Forum thread: (where i got the idea to try)
https://forum.unity.com/threads/2024-and-still-no-snapshot.1575175/
Source:
https://gist.github.com/unitycoder/b740b9db92e454d83ade8528d5e1f382
VIDEO: (making of)
New: One other alternative,
can use RenderStaticPreview to render that thumbnail in inspector (see image below)
– https://docs.unity3d.com/ScriptReference/Editor.RenderStaticPreview.html

Leave a comment
Recent posts
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











