Skip to content

Commit

Permalink
Add @export_tool_button to the documention
Browse files Browse the repository at this point in the history
  • Loading branch information
52SW authored Nov 29, 2024
1 parent a66974a commit c71463c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorials/scripting/gdscript/gdscript_exports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,10 @@ for a list of parameters and their allowed values.
If you need to create a clickable inspector button, you can use ``@export_tool_button``.
This would export a Callable property as a clickable button. When the button is pressed, the callable is called.

Export a button with label ``"Hello"`` and icon "Callable". When you press it, it will print "Hello world!".
Export a button with label ``"Hello"`` and icon ``"Callable"``. When you press it, it will print ``"Hello world!"``.

::

@tool
extends Node3D

Expand Down

0 comments on commit c71463c

Please sign in to comment.