Expand description
Functionality related to script instances (Rust code that can be attached as node scripts).
The features in this module are complemented by the ScriptExtension class and
the IScriptExtension trait.
See ScriptInstance for usage.
Re-exports§
pub use crate::classes::IScriptExtension;pub use crate::obj::Inherits;
Structs§
- Script
Base Mut - Mutable/exclusive reference guard for a
Basepointer. - Script
Base Ref - Shared reference guard for a
Basepointer. - SiMut
- Mutable/exclusive reference guard for a
TwhereTimplementsScriptInstance.
Traits§
- Script
Instance - Implement custom scripts that can be attached to objects in Godot.
Functions§
- create_
script_ ⚠instance - Creates a new from a type that implements
ScriptInstance. - script_
instance_ exists - Checks if an instance of the script exists for a given object.