EditorResourcePreviewGenerator Extensions
GDScript
A Godot 4 plugin that extends the functionality of EditorResourcePreviewGenerator to simplify preview generation. Fully compatible with Godot's existing EditorResourcePreview functionality. The EditorResourcePreviewGenerator2D class allows for generating previews using CanvasItem-style drawing calls. It is an EditorResourcePreviewGenerator, but its _generate_2d() method replaces the parent class's _generate() method and passes in an object that allows for calling drawing methods (draw_circle, draw_polyline, etc).
Get it → github.com