class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResourceScript GDScript
A script implemented in the GDScript programming language.

A script implemented in the GDScript programming language, saved with the .gd extension. The script extends the functionality of all objects that instantiate it.

Calling new() creates a new instance of the script. Object.set_script() extends an existing object, if that object's class matches one of the script's base classes.

If you are looking for GDScript's built-in functions, see @GDScript instead.

Variant new<>( ... params=, params:...=, ):Variant

Returns a new instance of the script.

var MyClass = load("myclass.gd") var instance = MyClass.new() print(instance.get_script() == MyClass) # Prints true



All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...