github_url: | hide |
---|
Inherits: :ref:`Script<class_Script>` < :ref:`Resource<class_Resource>` < :ref:`RefCounted<class_RefCounted>` < :ref:`Object<class_Object>`
A script implemented in the C# programming language, saved with the .cs
extension (Mono-enabled builds only).
.. rst-class:: classref-introduction-group
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.
.. rst-class:: classref-introduction-group
.. rst-class:: classref-reftable-group
:ref:`Variant<class_Variant>` | :ref:`new<class_CSharpScript_method_new>`(...) |vararg| |
.. rst-class:: classref-section-separator
.. rst-class:: classref-descriptions-group
.. rst-class:: classref-method
:ref:`Variant<class_Variant>` new(...) |vararg| :ref:`🔗<class_CSharpScript_method_new>`
Returns a new instance of the script.