|
| 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) |
| |
| proto void | CommonEditorProps (string category="", string description="", string color="255 0 0 255", bool visible=true, bool insertable=true, bool configRoot=false, string icon="",) |
| |
◆ 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
-
| category | Typically a "folder/item" path for placing the type into a tree view, e.g., "StaticEntities/Walls". |
| description | A description of the type's usage. |
| color | Color of an entity visualizer shape outline |
| visible | Indicates whether the entity visualizer is visible when not selected. |
| insertable | Indicates whether the type is available for insertion from the tree view. |
| configRoot | Indicates whether the type can be used as the root object of a config file (.conf). |
| icon | A path to an icon file for better visualization in a tree view. |
| style | Style of entity visualizer, can be: "none", "box", "sphere", "cylinder", "capsule", "pyramid", "diamond", "icon". Anything else is custom. Empty is none. |
| sizeMin | Minimum dimensions of an entity visualizer shape |
| sizeMax | Maximum dimensions of an entity visualizer shape |
| color2 | Color of an entity visualizer shape |
| dynamicBox | Is the entity visualizer using custom dimensions (provided by _WB_GetBoundBox) |
| iconPrefab | Scene icon definition. It must be a resource name in string form like "{AC931A989866A2BA}system/wbdata/WorldEditor/EntityIcons/Rectangle/Rectangle_ground.et" |
| billboard | Behaves like a 2D billboard that faces the icon model to be oriented to camera (for icons only) |
| elevation | Extra elevation above an entity. Currently works only with icons. |
| scale | Scale of the visualizer. Currently works only with icons. |
The documentation for this interface was generated from the following file:
- Core/generated/Attributes/EntityEditorProps.c