Skip to main content

IGrassManagerMethods

Trait IGrassManagerMethods 

Source
pub trait IGrassManagerMethods: IGrassManager {
Show 28 methods // Provided methods fn get_reference_transform_num(self) -> i32 { ... } fn set_grass_data(self, value: impl Into<GrassData>) { ... } fn get_grass_data(self) -> GrassData { ... } fn get_has_terrain(self) -> bool { ... } fn awake(self) { ... } fn on_enable(self) { ... } fn get_material(self, index: impl Into<i32>) -> Material { ... } fn get_texture(self, index: impl Into<i32>) -> Texture2D { ... } fn set_interaction_center(self, position: impl Into<Vector3>) { ... } fn setup(self) { ... } fn setup_material(self) { ... } fn update_material_parameter(self) { ... } fn update_material_parameter_2(self, mesh_index: impl Into<i32>) { ... } fn update_lightmap(self) { ... } fn update_lightmap_2(self, mesh_index: impl Into<i32>) { ... } fn set_material_to_children_all(self) { ... } fn set_material_to_children( self, parent: impl Into<Transform>, mesh_index: impl Into<i32>, ) { ... } fn set_not_editable_to_children(self) { ... } fn set_editable_to_children(self) { ... } fn set_grass_material_keyword( self, material_index: impl Into<i32>, keyword: impl Into<Il2CppString>, enabled: impl Into<bool>, ) { ... } fn find_grass_mesh_parent_transform( self, parent: impl Into<Transform>, mesh_index: impl Into<i32>, ) -> Transform { ... } fn init_refrence_transform(self) { ... } fn calc_reference_transform_num(self) -> i32 { ... } fn find_ground_transform_index( self, search_target_transform: impl Into<Transform>, ) -> i32 { ... } fn get_field_size_offset(self) -> (bool, Vector3, Vector3) { ... } fn get_lightmap_data( self, mesh_index: impl Into<i32>, ) -> (bool, i32, Vector4) { ... } fn find_ground_texture(self, mesh_index: impl Into<i32>) -> Texture2D { ... } fn ctor(self) { ... }
}

Provided Methods§

Source

fn get_reference_transform_num(self) -> i32

get_ReferenceTransformNum() overload

Source

fn set_grass_data(self, value: impl Into<GrassData>)

set_GrassData(crate::app::grassdata::GrassData) overload

Source

fn get_grass_data(self) -> GrassData

get_GrassData() overload

Source

fn get_has_terrain(self) -> bool

get_HasTerrain() overload

Source

fn awake(self)

Awake() overload

Source

fn on_enable(self)

OnEnable() overload

Source

fn get_material(self, index: impl Into<i32>) -> Material

GetMaterial(i32) overload

Source

fn get_texture(self, index: impl Into<i32>) -> Texture2D

GetTexture(i32) overload

Source

fn set_interaction_center(self, position: impl Into<Vector3>)

SetInteractionCenter(crate::unity_engine::vector3::Vector3) overload

Source

fn setup(self)

Setup() overload

Source

fn setup_material(self)

SetupMaterial() overload

Source

fn update_material_parameter(self)

UpdateMaterialParameter() overload

Source

fn update_material_parameter_2(self, mesh_index: impl Into<i32>)

UpdateMaterialParameter(i32) overload

Source

fn update_lightmap(self)

UpdateLightmap() overload

Source

fn update_lightmap_2(self, mesh_index: impl Into<i32>)

UpdateLightmap(i32) overload

Source

fn set_material_to_children_all(self)

SetMaterialToChildrenAll() overload

Source

fn set_material_to_children( self, parent: impl Into<Transform>, mesh_index: impl Into<i32>, )

SetMaterialToChildren(crate::unity_engine::transform::Transform, i32) overload

Source

fn set_not_editable_to_children(self)

SetNotEditableToChildren() overload

Source

fn set_editable_to_children(self)

SetEditableToChildren() overload

Source

fn set_grass_material_keyword( self, material_index: impl Into<i32>, keyword: impl Into<Il2CppString>, enabled: impl Into<bool>, )

SetGrassMaterialKeyword(i32, ::unity::Il2CppString, bool) overload

Source

fn find_grass_mesh_parent_transform( self, parent: impl Into<Transform>, mesh_index: impl Into<i32>, ) -> Transform

FindGrassMeshParentTransform(crate::unity_engine::transform::Transform, i32) overload

Source

fn init_refrence_transform(self)

InitRefrenceTransform() overload

Source

fn calc_reference_transform_num(self) -> i32

CalcReferenceTransformNum() overload

Source

fn find_ground_transform_index( self, search_target_transform: impl Into<Transform>, ) -> i32

FindGroundTransformIndex(crate::unity_engine::transform::Transform) overload

Source

fn get_field_size_offset(self) -> (bool, Vector3, Vector3)

GetFieldSizeOffset(*mutcrate::unity_engine::vector3::Vector3, *mutcrate::unity_engine::vector3::Vector3) overload

Source

fn get_lightmap_data(self, mesh_index: impl Into<i32>) -> (bool, i32, Vector4)

GetLightmapData(i32, *muti32, *mutcrate::unity_engine::vector4::Vector4) overload

Source

fn find_ground_texture(self, mesh_index: impl Into<i32>) -> Texture2D

FindGroundTexture(i32) 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: IGrassManager> IGrassManagerMethods for __T

Available on crate feature app-grassmanager only.