From 7aa096ec413509785f88a2ef1fc6021b81a97023 Mon Sep 17 00:00:00 2001 From: markdibarry Date: Fri, 19 Apr 2024 20:48:52 -0400 Subject: [PATCH] Add links for overriding default --- tutorials/scripting/c_sharp/c_sharp_exports.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tutorials/scripting/c_sharp/c_sharp_exports.rst b/tutorials/scripting/c_sharp/c_sharp_exports.rst index 13eba7b89..a0af83a3e 100644 --- a/tutorials/scripting/c_sharp/c_sharp_exports.rst +++ b/tutorials/scripting/c_sharp/c_sharp_exports.rst @@ -107,7 +107,10 @@ Properties with a backing field use the default value of the backing field. value for ``int``, ``0``. However, when running the scene or inspecting a node with an attached tool script, ``_number`` will be ``2``, and ``NumberWithBackingField`` will return ``5``. This difference may cause - confusing behavior. To avoid this, don't use complex properties. + confusing behavior. To avoid this, don't use complex properties. Alternatively, + if the default value can be explicitly specified, it can be overridden with the + :ref:`_PropertyCanRevert() ` and + :ref:`_PropertyGetRevert() ` methods. Any type of ``Resource`` or ``Node`` can be exported. The property editor shows a user-friendly assignment dialog for these types. This can be used instead of