FoliageEditor ​
Inherits: VBoxContainer
The Foliage tab (Assets > Foliage): the files of the two folders of the foliage library as a tree with a picture of each, and the entry of the file you select. The folders: src/data/worlds/foliage/ground_scatter/ meshes: grass, weeds, pebbles, small rocks src/data/worlds/foliage/foliage/ scenes: trees, bushes, big rocks (Open in Editor opens the scene) An entry is made for every file the tab finds; a variant (Add variant) is another entry for the same file, usually with other materials. See docs: Assets > Foliage.
Variables ​
LineEdit | search_bar | |
OptionButton | filter_option | |
Button | refresh_button | |
MenuButton | thumbnails_button | |
Label | status_label | |
Tree | tree | |
VBoxContainer | detail | |
TextureRect | preview_rect | |
AssetViewport3D | preview_3d | |
Label | title_label | |
Label | path_label | |
Label | kind_label | |
LineEdit | name_edit | |
Button | open_button | |
Button | show_button | |
Button | variant_button | |
Button | remove_button | |
Label | problems_label | |
VBoxContainer | materials_box | |
VBoxContainer | materials_section | |
ConfirmationDialog | variant_dialog | |
LineEdit | variant_name_edit | |
FoliageDefinition | current_entry | null |
VBoxContainer | group_box | |
Label | member_note |
Methods ​
void | setup_managers( _resource_manager: Variant = null, _dialog_manager: Variant = null ) |
void | refresh() |
FoliageDefinition | make_variant( variant_name: String ) |
void | remove_or_reset() |
Constants ​
floatPREVIEW_SIZE =160.0Array[String]LOOK_PROPERTIES =["scale_min", "scale_max", "height_min", "height_max", "rotation_offset:x", "...- How a scene looks (a member keeps these; a group does not have them) and where and how much it grows (the group has these; a member does not).Array[String]GROWTH_PROPERTIES =["density", "spacing", "slope_min", "slope_max", "altitude_min", "altitude_ma...
Variable descriptions ​
LineEdit search_bar ​
No description yet.
OptionButton filter_option ​
No description yet.
Button refresh_button ​
No description yet.
MenuButton thumbnails_button ​
No description yet.
Label status_label ​
No description yet.
Tree tree ​
No description yet.
VBoxContainer detail ​
No description yet.
TextureRect preview_rect ​
No description yet.
AssetViewport3D preview_3d ​
The 3D view of the selected scene or mesh (with the materials of the entry), in place of the small picture
Label title_label ​
No description yet.
Label path_label ​
No description yet.
Label kind_label ​
No description yet.
LineEdit name_edit ​
No description yet.
Button open_button ​
No description yet.
Button show_button ​
No description yet.
Button variant_button ​
No description yet.
Button remove_button ​
No description yet.
Label problems_label ​
No description yet.
VBoxContainer materials_box ​
No description yet.
VBoxContainer materials_section ​
No description yet.
ConfirmationDialog variant_dialog ​
No description yet.
LineEdit variant_name_edit ​
No description yet.
FoliageDefinition current_entry = null ​
No description yet.
VBoxContainer group_box ​
No description yet.
Label member_note ​
No description yet.
Method descriptions ​
void setup_managers( _resource_manager: Variant = null, _dialog_manager: Variant = null ) ​
No description yet.
void refresh() ​
Looks for new, moved and missing files (making the entries they need) and shows the tree again.
FoliageDefinition make_variant( variant_name: String ) ​
Makes a variant of the selected entry and selects it.
void remove_or_reset() ​
Deletes the selected variant or missing entry, or puts the entry of a file back to the numbers of a new one.