class_csharpscript.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CSharpScript.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CSharpScript:
  6. CSharpScript
  7. ============
  8. **Inherits:** :ref:`Script<class_Script>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. A script implemented in the C# programming language (Mono-enabled builds only).
  10. Description
  11. -----------
  12. This class represents a C# script. It is the C# equivalent of the :ref:`GDScript<class_GDScript>` class and is only available in Mono-enabled Godot builds.
  13. See also :ref:`GodotSharp<class_GodotSharp>`.
  14. Tutorials
  15. ---------
  16. - :doc:`../tutorials/scripting/c_sharp/index`
  17. Methods
  18. -------
  19. +-------------------------------+--------------------------------------------------------------------+
  20. | :ref:`Variant<class_Variant>` | :ref:`new<class_CSharpScript_method_new>` **(** ... **)** |vararg| |
  21. +-------------------------------+--------------------------------------------------------------------+
  22. Method Descriptions
  23. -------------------
  24. .. _class_CSharpScript_method_new:
  25. - :ref:`Variant<class_Variant>` **new** **(** ... **)** |vararg|
  26. Returns a new instance of the script.
  27. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  28. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  29. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`