Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be πŸ“–

Custom Resource Previews

An asset by rllyy97
The page banner background of a mountain and forest
Custom Resource Previews thumbnail image
Custom Resource Previews thumbnail image
Custom Resource Previews hero image

Quick Information

0 ratings
Custom Resource Previews icon image
rllyy97
Custom Resource Previews

A Godot plugin that enables custom preview images for your resources in the editor.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 identityInstallation1. Download the plugin to your project's addons/ directory2. Enable the plugin in Project Settings β†’ Plugins3. Restart the editor if previews do not appear immediatelyUsage- Implement the _get_custom_preview_texture() method in your custom resource script:```func _get_custom_preview_texture() -> Texture2D: return icon```The returned texture will be displayed as the preview icon in:- FileSystem dock- Resource picker dialogsLicenseMIT LicenseContacthttps://github.com/rllyy97/

Supported Engine Version
4.5
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
5 hours ago
Git URL
Issue URL

Custom Resource Previews

A Godot plugin that enables custom preview images for your resources in the editor.

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

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

License

MIT License

Contact

https://github.com/rllyy97/

A Godot plugin that enables custom preview images for your resources in the editor.

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
- Implement the _get_custom_preview_texture() method in your custom resource script:
```
func _get_custom_preview_texture() -> Texture2D:
return icon
```

The returned texture will be displayed as the preview icon in:
- FileSystem dock
- Resource picker dialogs

License
MIT License

Contact
https://github.com/rllyy97/

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Custom Resource Previews icon image
rllyy97
Custom Resource Previews

A Godot plugin that enables custom preview images for your resources in the editor.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 identityInstallation1. Download the plugin to your project's addons/ directory2. Enable the plugin in Project Settings β†’ Plugins3. Restart the editor if previews do not appear immediatelyUsage- Implement the _get_custom_preview_texture() method in your custom resource script:```func _get_custom_preview_texture() -> Texture2D: return icon```The returned texture will be displayed as the preview icon in:- FileSystem dock- Resource picker dialogsLicenseMIT LicenseContacthttps://github.com/rllyy97/

Supported Engine Version
4.5
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
5 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers