Function GodotObject.getScript

Returns the object's Script instance, or null if none is assigned.

Reference getScript() nothrow @nogc const;