From 5e421754ece55f84dcc01a711b7e5b6bef2b167a Mon Sep 17 00:00:00 2001 From: Jean-Samuel Aubry-Guzzi Date: Tue, 25 Oct 2022 21:24:37 -0400 Subject: [PATCH] Add warning about importing c# --- tutorials/scripting/cross_language_scripting.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tutorials/scripting/cross_language_scripting.rst b/tutorials/scripting/cross_language_scripting.rst index 54389afee..1d3c67c0a 100644 --- a/tutorials/scripting/cross_language_scripting.rst +++ b/tutorials/scripting/cross_language_scripting.rst @@ -89,6 +89,9 @@ with :ref:`new() `. ``Invalid call. Nonexistent function `new` in base``. For example, MyCoolNode.cs should contain a class named MyCoolNode. + + The C# class needs to derive a Godot class, for example ``Godot.Object``. + Otherwise, the same error will occur. You also need to check your ``.cs`` file is referenced in the project's ``.csproj`` file. Otherwise, the same error will occur.