Struct ark_api::world::WorldMaterials
source · pub struct WorldMaterials { /* private fields */ }Expand description
Represents a vector of WorldMaterial’s attached to the MeshStyle.
Implementations§
source§impl 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§
source§impl From<Vec<MaterialDesc, Global>> for WorldMaterials
impl From<Vec<MaterialDesc, Global>> for WorldMaterials
source§fn from(materials: Vec<MaterialDesc>) -> Self
fn from(materials: Vec<MaterialDesc>) -> Self
Converts to this type from the input type.
source§impl From<Vec<WorldMaterial, Global>> for WorldMaterials
impl From<Vec<WorldMaterial, Global>> for WorldMaterials
source§fn from(materials: Vec<WorldMaterial>) -> Self
fn from(materials: Vec<WorldMaterial>) -> Self
Converts to this type from the input type.
source§impl ValueConverterTrait<WorldMaterials> for ValueConverter
impl ValueConverterTrait<WorldMaterials> for ValueConverter
source§fn into_value(v: WorldMaterials) -> Value
fn into_value(v: WorldMaterials) -> Value
Wraps the passed-in value in a
Value enum.source§fn from_value(v: &Value) -> WorldMaterials
fn from_value(v: &Value) -> WorldMaterials
Extracts the value from a
Value enum.