Struct ark_api::world::WorldMaterials
source · [−]pub struct WorldMaterials { /* private fields */ }
Expand description
Represents a vector of WorldMaterial
’s attached to the MeshStyle
.
Implementations
sourceimpl WorldMaterials
impl WorldMaterials
sourcepub fn new(materials: Vec<WorldMaterial>) -> Self
pub fn new(materials: Vec<WorldMaterial>) -> Self
Creates WorldMaterials
from a Vec
.
sourcepub fn set_debug_name(&self, name: &str)
pub fn set_debug_name(&self, name: &str)
Sets a debug name of this data object. Useful for debugging memory usage and leaks.
Trait Implementations
sourceimpl ValueConverterTrait<WorldMaterials> for ValueConverter
impl ValueConverterTrait<WorldMaterials> for ValueConverter
sourcefn into_value(v: WorldMaterials) -> Value
fn into_value(v: WorldMaterials) -> Value
Wraps the passed-in value in a Value
enum.
sourcefn from_value(v: &Value) -> WorldMaterials
fn from_value(v: &Value) -> WorldMaterials
Extracts the value from a Value
enum.
Auto Trait Implementations
impl RefUnwindSafe for WorldMaterials
impl Send for WorldMaterials
impl Sync for WorldMaterials
impl Unpin for WorldMaterials
impl UnwindSafe for WorldMaterials
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more