Is it possible to make Resource type's behavior found in built-in one?

Godot Version

v4.4.1.stable.mono.official [49a5bc7b6]

Question

I’m wondering if Resource behavior such as:

  • Being included Create NewResourceCreate New Resource window
  • Can be created specific to scene/node without explicit presence in the Editor’s file system (Like how StyleBox can exist specific to a Theme resource)
    Is possible for custom user-made Resource, and how I can do it in GDscript and C#. Thank you in advance!

I’m not sure what you mean. If you give a script that extends Resource a class_name it will show up in the Create new Resource popup and you can @export it by using that class_name as the variable type. More info here Resources — Godot Engine (stable) documentation in English

1 Like

Nvm I figured it out. From this Youtube video: https://www.youtube.com/watch?v=PrCza2z0Log

I probably could have phrased the question better, but maybe I’ll keep the question, just in case someone else will need it later.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.