Description
Changelog
Reviews (0)

Features

  • Define custom preview textures for your resource instances
  • Improve resource browsing and searching in the Godot editor
  • Give each resource instance a distinct visual identity

Installation

  1. Download the plugin to your project's addons/ directory
  2. Enable the plugin in Project Settings → Plugins
  3. Restart the editor if previews do not appear immediately

Usage

  1. Add the @tool annotation to your custom resource script
  2. Implement the _get_custom_preview_texture() method in your custom resource script:
@tool
extends Resource
class_name MyCustomResource

@export var icon: Texture2D = null

func _get_custom_preview_texture() -> Texture2D:
    return icon

The returned texture will be displayed as the preview icon in:

  • FileSystem dock
  • Resource picker dialogs

Changelog for version v1.0.0

No changelog provided for this version.

Reviews

Custom Resource Previews has no reviews yet.

Login to write a review.