Skip to main content

ILightProbesMethods

Trait ILightProbesMethods 

Source
pub trait ILightProbesMethods: ILightProbes {
    // Provided methods
    fn ctor(self) { ... }
    fn get_positions(self) -> Array<Vector3> { ... }
    fn get_baked_probes(self) -> Array<SphericalHarmonicsL2> { ... }
    fn set_baked_probes(self, value: impl Into<Array<SphericalHarmonicsL2>>) { ... }
    fn get_count(self) -> i32 { ... }
    fn get_cell_count(self) -> i32 { ... }
    fn get_interpolated_light_probe(
        self,
        position: impl Into<Vector3>,
        renderer: impl Into<Renderer>,
        coefficients: impl Into<Array<f32>>,
    ) { ... }
    fn get_coefficients(self) -> Array<f32> { ... }
    fn set_coefficients(self, value: impl Into<Array<f32>>) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn get_positions(self) -> Array<Vector3>

get_positions() overload

Source

fn get_baked_probes(self) -> Array<SphericalHarmonicsL2>

get_bakedProbes() overload

Source

fn set_baked_probes(self, value: impl Into<Array<SphericalHarmonicsL2>>)

set_bakedProbes(::unity::Array<crate::unity_engine::rendering::sphericalharmonicsl2::SphericalHarmonicsL2>) overload

Source

fn get_count(self) -> i32

get_count() overload

Source

fn get_cell_count(self) -> i32

get_cellCount() overload

Source

fn get_interpolated_light_probe( self, position: impl Into<Vector3>, renderer: impl Into<Renderer>, coefficients: impl Into<Array<f32>>, )

GetInterpolatedLightProbe(crate::unity_engine::vector3::Vector3, crate::unity_engine::renderer::Renderer, ::unity::Array<f32>) overload

Source

fn get_coefficients(self) -> Array<f32>

get_coefficients() overload

Source

fn set_coefficients(self, value: impl Into<Array<f32>>)

set_coefficients(::unity::Array<f32>) 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: ILightProbes> ILightProbesMethods for __T

Available on crate feature unity_engine-lightprobes only.