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
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
- Detect SRP (URP or HDRP) with Assembly Definition Version Defines
- [LudumDare57] Theme: Depths
- MotionVector Effect: Object “disappears” when paused
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
Recent Comments
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
- on UI Scroll View automatic Content height
- on [Asset Store] Point Cloud Viewer & Tools
- on [Asset Store] Point Cloud Viewer & Tools
- on Vector3 maths for dummies!
- on UnityHub: Make Hub application background Translucent
An article by











