pub trait IHubMaterialArrayMethods: IHubMaterialArray {
// Provided methods
fn change_material(self, name: impl Into<Il2CppString>) { ... }
fn awake(self) { ... }
fn replace_material(self, material: impl Into<Material>) { ... }
fn on_destroy(self) { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn change_material(self, name: impl Into<Il2CppString>)
fn change_material(self, name: impl Into<Il2CppString>)
ChangeMaterial(::unity::Il2CppString) overload
Sourcefn replace_material(self, material: impl Into<Material>)
fn replace_material(self, material: impl Into<Material>)
ReplaceMaterial(crate::unity_engine::material::Material) overload
Sourcefn on_destroy(self)
fn on_destroy(self)
OnDestroy() overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IHubMaterialArray> IHubMaterialArrayMethods for __T
Available on crate feature
app-hubmaterialarray only.