Skip to main content

IShadowCaster2DMethods

Trait IShadowCaster2DMethods 

Source
pub trait IShadowCaster2DMethods: IShadowCaster2D {
Show 16 methods // Provided methods fn get_mesh(self) -> Mesh { ... } fn get_shape_path(self) -> Array<Vector3> { ... } fn get_shape_path_hash(self) -> i32 { ... } fn set_shape_path_hash(self, value: impl Into<i32>) { ... } fn set_use_renderer_silhouette(self, value: impl Into<bool>) { ... } fn get_use_renderer_silhouette(self) -> bool { ... } fn set_self_shadows(self, value: impl Into<bool>) { ... } fn get_self_shadows(self) -> bool { ... } fn set_casts_shadows(self, value: impl Into<bool>) { ... } fn get_casts_shadows(self) -> bool { ... } fn is_shadowed_layer(self, layer: impl Into<i32>) -> bool { ... } fn awake(self) { ... } fn on_enable(self) { ... } fn on_disable(self) { ... } fn update(self) { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_mesh(self) -> Mesh

get_mesh() overload

Source

fn get_shape_path(self) -> Array<Vector3>

get_shapePath() overload

Source

fn get_shape_path_hash(self) -> i32

get_shapePathHash() overload

Source

fn set_shape_path_hash(self, value: impl Into<i32>)

set_shapePathHash(i32) overload

Source

fn set_use_renderer_silhouette(self, value: impl Into<bool>)

set_useRendererSilhouette(bool) overload

Source

fn get_use_renderer_silhouette(self) -> bool

get_useRendererSilhouette() overload

Source

fn set_self_shadows(self, value: impl Into<bool>)

set_selfShadows(bool) overload

Source

fn get_self_shadows(self) -> bool

get_selfShadows() overload

Source

fn set_casts_shadows(self, value: impl Into<bool>)

set_castsShadows(bool) overload

Source

fn get_casts_shadows(self) -> bool

get_castsShadows() overload

Source

fn is_shadowed_layer(self, layer: impl Into<i32>) -> bool

IsShadowedLayer(i32) overload

Source

fn awake(self)

Awake() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn on_disable(self)

OnDisable() overload

Source

fn update(self)

Update() 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: IShadowCaster2D> IShadowCaster2DMethods for __T

Available on crate feature unity_engine-experimental-rendering-universal-shadowcaster2d only.