Apr
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


About the Author:

.fi

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.