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
- Editor Tool: Scene Size Analyzer
- LudumDare 60: Old Tech
- uBasic Scripting Language for Unity
- GreaseMonkey+Editor Plugin: 1-Click Copy script from ChatGPT (Web) to Unity Editor (as script)
- Editor Tool: Property Watcher
- .unityignore : Hide files from Project window
- PostBuild Script to Create Single exe Standalone File
- Game Loop Designer
- Favorites in PackageManager
- LudumDare59 : Signal
- Unity Editor: Tree Generator
- Leaf/Foliage Generator Tools (Runs in Browser)
Recent Comments
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by











