Loading...
Searching...
No Matches
EntityEditorProps Interface Reference
Inheritance diagram for EntityEditorProps:
CommonEditorProps UniqueAttribute

Public Member Functions

proto void EntityEditorProps (string category="", string description="", string color="255 0 0 255", bool visible=true, bool insertable=true, bool configRoot=false, string icon="", string style="box", vector sizeMin="-0.25 -0.25 -0.25", vector sizeMax="0.25 0.25 0.25", string color2="0 0 0 0", bool dynamicBox=false, string iconPrefab="", bool billboard=true, float elevation=0, float scale=1)
 
- Public Member Functions inherited from CommonEditorProps
proto void CommonEditorProps (string category="", string description="", string color="255 0 0 255", bool visible=true, bool insertable=true, bool configRoot=false, string icon="",)
 

Constructor & Destructor Documentation

◆ EntityEditorProps()

proto void EntityEditorProps.EntityEditorProps ( string category = "",
string description = "",
string color = "255 0 0 255",
bool visible = true,
bool insertable = true,
bool configRoot = false,
string icon = "",
string style = "box",
vector sizeMin = "-0.25 -0.25 -0.25",
vector sizeMax = "0.25 0.25 0.25",
string color2 = "0 0 0 0",
bool dynamicBox = false,
string iconPrefab = "",
bool billboard = true,
float elevation = 0,
float scale = 1 )
Parameters
categoryTypically a "folder/item" path for placing the type into a tree view, e.g., "StaticEntities/Walls".
descriptionA description of the type's usage.
colorColor of an entity visualizer shape outline
visibleIndicates whether the entity visualizer is visible when not selected.
insertableIndicates whether the type is available for insertion from the tree view.
configRootIndicates whether the type can be used as the root object of a config file (.conf).
iconA path to an icon file for better visualization in a tree view.
styleStyle of entity visualizer, can be: "none", "box", "sphere", "cylinder", "capsule", "pyramid", "diamond", "icon". Anything else is custom. Empty is none.
sizeMinMinimum dimensions of an entity visualizer shape
sizeMaxMaximum dimensions of an entity visualizer shape
color2Color of an entity visualizer shape
dynamicBoxIs the entity visualizer using custom dimensions (provided by _WB_GetBoundBox)
iconPrefabScene icon definition. It must be a resource name in string form like "{AC931A989866A2BA}system/wbdata/WorldEditor/EntityIcons/Rectangle/Rectangle_ground.et"
billboardBehaves like a 2D billboard that faces the icon model to be oriented to camera (for icons only)
elevationExtra elevation above an entity. Currently works only with icons.
scaleScale of the visualizer. Currently works only with icons.

The documentation for this interface was generated from the following file: