Skip to content

ObjectLibraryPanel

Extends: PanelContainer

Description

This is panel that displays the menu of Props.

Accessed by 'Global.Editor.ObjectLibraryPanel'.

Properties

Button allButton
Button usedButton
Button tagsButton
GridMenu objectMenu
Control filters
HSlider strictness
ObjectTool ObjectTool
ScatterTool ScatterTool
Dictionary searchEngine
Dictionary regexEngine

Methods

Dictionary Save ( )
void Load ( Dictionary data )
void Init ( )
void ShowAllObjects ( )
void ShowUsedObjects ( )
void ShowObjectsArray ( Texture[] textures )
void ShowNoObjects ( )
void Select ( int index )

Property Descriptions

  • Button allButton:
    The All objects button.

  • Button usedButton:
    The Used objects button.

  • Button tagsButton:
    The Tags objects button.

  • GridMenu objectMenu:
    The menu that contains the objects to display.

  • Control filters:
    The parent of the search UI elements.

  • HSlider strictness:
    The slider to determine how strict the search bar should be. Low value allows for misspellings to still catch the terms.

  • ObjectTool ObjectTool:
    Reference of the ObjectTool.

  • ScatterTool ScatterTool:
    Reference of the ScatterTool.

  • Dictionary searchEngine:
    Lookup table for the standard search engine. Dictionary of String key - Array[Texture] value.

  • Dictionary regexEngine:
    Lookup table for the regex engine. Dictionary of String key - Texture value.

Method Descriptions

  • Dictionary Save ( ):
    Serialize the last state of the panel to be restored in the future. No need to call manually.

  • void Load ( Dictionary data ):
    Load the last state of the panel to be restored in the future. No need to call manually.

  • void Init ( ):
    Initialize the menu and load the assets.





  • void Select ( int index ):
    Select a specific object asset in the menu. Index is the item order.