From fb1f3c837730f8b18c4e4d04bf6bc363507f1083 Mon Sep 17 00:00:00 2001 From: j4d3blooded <94726557+j4d3blooded@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:34:16 +0100 Subject: [PATCH] =?UTF-8?q?Included=20note=20about=20requirement=20for=20c?= =?UTF-8?q?lass=5Fname=20for=20a=20resource=20to=20show=E2=80=A6=20(#10838?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Included note about requirement for class_name for a resource to show up in create resource GUI --- tutorials/scripting/resources.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/scripting/resources.rst b/tutorials/scripting/resources.rst index 698b69cc4..7124f3c22 100644 --- a/tutorials/scripting/resources.rst +++ b/tutorials/scripting/resources.rst @@ -209,11 +209,11 @@ Without a script, it's useless, so let's add some data and logic! Attach a script to it named ``bot_stats.gd`` (or just create a new script, and then drag it to it). .. note:: - If you're using C#, you need to annotate your Resource class with the ``[GlobalClass]`` attribute for it to show up in the create resource GUI. + To make the new resource class appear in the Create Resource GUI you need to provide a class name for GDScript, or use the [GlobalClass] attribute in C#. .. tabs:: .. code-tab:: gdscript GDScript - + class_name BotStats extends Resource @export var health: int