Skip to content

Commit

Permalink
🐞 fix(different): ADD exceptions
Browse files Browse the repository at this point in the history
Provide explanations for Singleton exceptions of `EditorInterface`
  • Loading branch information
easterNday committed May 19, 2024
1 parent 821cafc commit da9e0ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tutorials/scripting/c_sharp/c_sharp_differences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,17 @@ Example:
Input.Singleton.JoyConnectionChanged += Input_JoyConnectionChanged;
If you are developing main screen plugins using C#, it is essential to note the
distinctions between ``GDScript`` and ``C#`` during setup. Unlike in ``GDScript``,
this portion is not a static class in ``C#``. Consequently, you must employ the singleton
pattern to obtain an instance of the ``EditorInterface``:

==================== ==============================================================
GDScript C#
==================== ==============================================================
``EditorInterface`` ``EditorInterface.Singleton``
==================== ==============================================================

String
------

Expand Down

0 comments on commit da9e0ea

Please sign in to comment.