From 0cb62ea051bbfcd775b9caa6b7af1eb510f4f1cf Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 31 Oct 2023 16:50:54 +0100 Subject: [PATCH] Fix doc --- doc/getting-started.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/getting-started.md b/doc/getting-started.md index d7a8b4a..c2ebeaf 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -31,7 +31,7 @@ Check out the `BTTask` class documentation in the editor, which provides the fou >**🛈 Note:** You can add a script template to your project with "Misc → Create script template" menu option. ### Task anatomy -``` +```gdscript @tool extends BTAction @@ -42,7 +42,7 @@ extends BTAction ## Note: Each method declaration is optional. ## At minimum, you only need to define the "_tick" method. -# Called to generate a display name for the task. +# Called to generate a display name for the task (requires @tool). func _generate_name() -> String: return "MyTask"