Fix doc
This commit is contained in:
parent
e8ae3e7b8f
commit
0cb62ea051
|
@ -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.
|
>**🛈 Note:** You can add a script template to your project with "Misc → Create script template" menu option.
|
||||||
|
|
||||||
### Task anatomy
|
### Task anatomy
|
||||||
```
|
```gdscript
|
||||||
@tool
|
@tool
|
||||||
extends BTAction
|
extends BTAction
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ extends BTAction
|
||||||
## Note: Each method declaration is optional.
|
## Note: Each method declaration is optional.
|
||||||
## At minimum, you only need to define the "_tick" method.
|
## 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:
|
func _generate_name() -> String:
|
||||||
return "MyTask"
|
return "MyTask"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue