Skip to main content

IHubMaterialArrayMethods

Trait IHubMaterialArrayMethods 

Source
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§

Source

fn change_material(self, name: impl Into<Il2CppString>)

ChangeMaterial(::unity::Il2CppString) overload

Source

fn awake(self)

Awake() overload

Source

fn replace_material(self, material: impl Into<Material>)

ReplaceMaterial(crate::unity_engine::material::Material) overload

Source

fn on_destroy(self)

OnDestroy() overload

Source

fn ctor(self)

.ctor() 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§

Source§

impl<__T: IHubMaterialArray> IHubMaterialArrayMethods for __T

Available on crate feature app-hubmaterialarray only.