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§
Sourcefn get_shape_path(self) -> Array<Vector3>
fn get_shape_path(self) -> Array<Vector3>
get_shapePath() overload
Sourcefn get_shape_path_hash(self) -> i32
fn get_shape_path_hash(self) -> i32
get_shapePathHash() overload
Sourcefn set_shape_path_hash(self, value: impl Into<i32>)
fn set_shape_path_hash(self, value: impl Into<i32>)
set_shapePathHash(i32) overload
Sourcefn set_use_renderer_silhouette(self, value: impl Into<bool>)
fn set_use_renderer_silhouette(self, value: impl Into<bool>)
set_useRendererSilhouette(bool) overload
Sourcefn get_use_renderer_silhouette(self) -> bool
fn get_use_renderer_silhouette(self) -> bool
get_useRendererSilhouette() overload
Sourcefn set_self_shadows(self, value: impl Into<bool>)
fn set_self_shadows(self, value: impl Into<bool>)
set_selfShadows(bool) overload
Sourcefn get_self_shadows(self) -> bool
fn get_self_shadows(self) -> bool
get_selfShadows() overload
Sourcefn set_casts_shadows(self, value: impl Into<bool>)
fn set_casts_shadows(self, value: impl Into<bool>)
set_castsShadows(bool) overload
Sourcefn get_casts_shadows(self) -> bool
fn get_casts_shadows(self) -> bool
get_castsShadows() overload
Sourcefn is_shadowed_layer(self, layer: impl Into<i32>) -> bool
fn is_shadowed_layer(self, layer: impl Into<i32>) -> bool
IsShadowedLayer(i32) overload
Sourcefn on_disable(self)
fn on_disable(self)
OnDisable() 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: IShadowCaster2D> IShadowCaster2DMethods for __T
Available on crate feature
unity_engine-experimental-rendering-universal-shadowcaster2d only.