Browse Source

Add warning about importing c#

Jean-Samuel Aubry-Guzzi 2 năm trước cách đây
mục cha
commit
24df2564d6

+ 3 - 0
tutorials/scripting/cross_language_scripting.rst

@@ -89,6 +89,9 @@ with :ref:`new() <class_CSharpScript_method_new>`.
     ``Invalid call. Nonexistent function `new` in base``.
     ``Invalid call. Nonexistent function `new` in base``.
 
 
     For example, MyCoolNode.cs should contain a class named MyCoolNode.
     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
     You also need to check your ``.cs`` file is referenced in the project's
     ``.csproj`` file. Otherwise, the same error will occur.
     ``.csproj`` file. Otherwise, the same error will occur.