Script Templates should state that each template must be in their own subdirectory
Your Godot version: v4.0.rc4.official [e0de3573f]
Issue description:
Script Templates don't work unless they're in their own subdirectories such as /script_templates/node/, the documentation doesn't make any mention of this.
I also still have no idea at all how to create a Shader Template.
URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/tutorials/scripting/creating_script_templates.html
Does the subdirectory need to match the snake_case name of the class that is being extended?
Here's my testing, attaching a script to a TextureRect and seeing what templates are detected in the project's local /script_templates/ directory:
/script_templates/texturerect/ : detects the template
/script_templates/TextureRect/ : detects the template (I'm on Windows, don't know if Linux treats this differently)
/script_templates/texture_rect/ : does not detect the template
Project Settings -> 'Node name casing' has zero effect on this, nor does renaming the node. (just checking)
and of course, any templates in /script_templates/node/ are also detected for TextureRect as well, because TextureRect inherits Node.