From 3dd5afca784a8455272d4aa6bbca7f69a685c8da Mon Sep 17 00:00:00 2001 From: Vladislav Vorobev Date: Fri, 29 Jul 2022 00:08:51 +0300 Subject: [PATCH] Fix missing code blocks in GDScript exports (#5998) --- tutorials/scripting/gdscript/gdscript_exports.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tutorials/scripting/gdscript/gdscript_exports.rst b/tutorials/scripting/gdscript/gdscript_exports.rst index fa3cc79e5..ca5ccb010 100644 --- a/tutorials/scripting/gdscript/gdscript_exports.rst +++ b/tutorials/scripting/gdscript/gdscript_exports.rst @@ -66,6 +66,8 @@ the following to list them: Integers and strings hint enumerated values. +:: + # Editor will enumerate as 0, 1 and 2. @export_enum("Warrior", "Magician", "Thief") var character_class @@ -213,6 +215,8 @@ Opening the inspector dropdown may result in an extremely long list of possible classes to create, however. Therefore, if you specify an extension of Resource such as: +:: + @export var resource: AnimationNode The drop-down menu will be limited to AnimationNode and all