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
- 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
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Recent Comments
- [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 on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on