Skip to content

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 ​

LineEditsearch_bar
OptionButtonfilter_option
Buttonrefresh_button
MenuButtonthumbnails_button
Labelstatus_label
Treetree
VBoxContainerdetail
TextureRectpreview_rect
AssetViewport3Dpreview_3d
Labeltitle_label
Labelpath_label
Labelkind_label
LineEditname_edit
Buttonopen_button
Buttonshow_button
Buttonvariant_button
Buttonremove_button
Labelproblems_label
VBoxContainermaterials_box
VBoxContainermaterials_section
ConfirmationDialogvariant_dialog
LineEditvariant_name_edit
FoliageDefinitioncurrent_entrynull
VBoxContainergroup_box
Labelmember_note

Methods ​

voidsetup_managers( _resource_manager: Variant = null, _dialog_manager: Variant = null )
voidrefresh()
FoliageDefinitionmake_variant( variant_name: String )
voidremove_or_reset()

Constants ​

  • float PREVIEW_SIZE = 160.0
  • Array[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 ​

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.