Add warning about importing c#

This commit is contained in:
Jean-Samuel Aubry-Guzzi
2022-10-25 21:24:37 -04:00
committed by Max Hilbrunner
parent 1c83aa5ba8
commit 24df2564d6

View File

@@ -89,6 +89,9 @@ with :ref:`new() <class_CSharpScript_method_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.