Struct gdnative::MeshLibrary
[−]
[src]
pub struct MeshLibrary { /* fields omitted */ }
core class MeshLibrary : Resource
(reference counted)
Base class
MeshLibrary inherits Resource and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl MeshLibrary
[src]
pub fn as_resource(&self) -> Resource
[src]
Up-cast.
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn create_item(&mut self, id: i64)
[src]
pub fn set_item_name(&mut self, id: i64, name: GodotString)
[src]
pub fn set_item_mesh(&mut self, id: i64, mesh: Option<Mesh>)
[src]
[src]
pub fn set_item_shapes(&mut self, id: i64, shapes: VariantArray)
[src]
pub fn set_item_preview(&mut self, id: i64, texture: Option<Texture>)
[src]
pub fn get_item_name(&self, id: i64) -> GodotString
[src]
pub fn get_item_mesh(&self, id: i64) -> Option<Mesh>
[src]
[src]
pub fn get_item_shapes(&self, id: i64) -> VariantArray
[src]
pub fn get_item_preview(&self, id: i64) -> Option<Texture>
[src]
pub fn remove_item(&mut self, id: i64)
[src]
pub fn find_item_by_name(&self, name: GodotString) -> i64
[src]
pub fn clear(&mut self)
[src]
pub fn get_item_list(&self) -> Int32Array
[src]
pub fn get_last_unused_item_id(&self) -> i64
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Methods from Deref<Target = Resource>
pub fn as_reference(&self) -> Reference
[src]
Up-cast.
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same object.
pub fn _setup_local_to_scene(&mut self)
[src]
pub fn set_path(&mut self, path: GodotString)
[src]
pub fn take_over_path(&mut self, path: GodotString)
[src]
pub fn get_path(&self) -> GodotString
[src]
pub fn set_name(&mut self, name: GodotString)
[src]
pub fn get_name(&self) -> GodotString
[src]
pub fn get_rid(&self) -> Rid
[src]
pub fn set_local_to_scene(&mut self, enable: bool)
[src]
pub fn is_local_to_scene(&self) -> bool
[src]
pub fn get_local_scene(&self) -> Option<Node>
[src]
pub fn setup_local_to_scene(&mut self)
[src]
pub fn duplicate(&self, subresources: bool) -> Option<Resource>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Trait Implementations
impl GodotObject for MeshLibrary
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Deref for MeshLibrary
[src]
type Target = Resource
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.