pub struct ScriptRef {
pub path: String,
pub class_name: String,
}Expand description
Script attachment referencing a project-relative Python file and target class.
Each script file exports a single class, providing a direct 1-to-1 mapping between the scene node and its scripting logic.
Fields§
§path: StringProject-relative path to the script file (e.g. res://scripts/player.py).
class_name: StringName of the Python class inheriting from an engine node type.
Trait Implementations§
impl Eq for ScriptRef
impl StructuralPartialEq for ScriptRef
Auto Trait Implementations§
impl Forget for ScriptRef
impl Freeze for ScriptRef
impl Move for ScriptRef
impl RefUnwindSafe for ScriptRef
impl Send for ScriptRef
impl Sync for ScriptRef
impl Unpin for ScriptRef
impl UnsafeUnpin for ScriptRef
impl UnwindSafe for ScriptRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more