class_csharpscript.rst 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:`RefCounted<class_RefCounted>` **<** :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:`C# documentation index <../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.)`
  30. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  31. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  32. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`