Create non instantiable Resource

I’m trying to create a plugin with resources that shouldn’t be created as files.

In godot, you cannot create a Texture file or a Texture2D. It’s shown by having a gray color and even when pressing the “create” button, nothing happens.

How can i reproduce that behavior to prevent people from creating files of a particular type and forcing them to use their childrens instead ?

You’ll want to track https://github.com/godotengine/godot-proposals/issues/5641 and its related PR:
Add an annotation for abstract classes in GDScript by aaronfranke · Pull Request #67777 · godotengine/godot · GitHub

1 Like

Well, i have a way thanks to one of the messages, but as the one who wrote it said, it’s flawed and ugly. Still better than no solution at all.

1 Like