Lens Scripting API
Guide Docs
Preparing search index...
The search index is not available
Editor Scripting API
Editor Scripting API
Editor
Model
IEntityPrototypeRegistry
InterfaceIEntityPrototypeRegistry
Beta
interface
IEntityPrototypeRegistry
{
createEntity
(
entityType
:
string
,
arg
:
Entity
|
Path
,
callback
:
(
(
arg1
:
Entity
)
=>
void
)
)
:
void
;
getCaptionForType
(
type
:
string
)
:
string
;
getEntityTypes
(
baseType
:
string
,
filter
:
(
(
arg1
:
string
)
=>
any
)
)
:
string
[]
;
getIconForType
(
type
:
string
)
:
Icon
;
getTypeName
(
)
:
string
;
isOfType
(
type
:
string
)
:
boolean
;
isSame
(
other
:
ScriptObject
)
:
boolean
;
registerEntityPrototype
(
prototypeData
:
EntityPrototypeData
)
:
IGuard
;
}
Hierarchy (
view full
)
IPluginComponent
IEntityPrototypeRegistry
Index
Methods
create
Entity
get
Caption
For
Type
get
Entity
Types
get
Icon
For
Type
get
Type
Name
is
Of
Type
is
Same
register
Entity
Prototype
Methods
create
Entity
create
Entity
(
entityType
,
arg
,
callback
)
:
void
Beta
Parameters
entityType
:
string
arg
:
Entity
|
Path
callback
:
(
(
arg1
:
Entity
)
=>
void
)
(
arg1
)
:
void
Parameters
arg1
:
Entity
Returns
void
Returns
void
get
Caption
For
Type
get
Caption
For
Type
(
type
)
:
string
Beta
Parameters
type
:
string
Returns
string
get
Entity
Types
get
Entity
Types
(
baseType
,
filter
)
:
string
[]
Beta
Parameters
baseType
:
string
filter
:
(
(
arg1
:
string
)
=>
any
)
(
arg1
)
:
any
Parameters
arg1
:
string
Returns
any
Returns
string
[]
get
Icon
For
Type
get
Icon
For
Type
(
type
)
:
Icon
Beta
Parameters
type
:
string
Returns
Icon
get
Type
Name
get
Type
Name
(
)
:
string
Beta
Returns
string
is
Of
Type
is
Of
Type
(
type
)
:
boolean
Beta
Parameters
type
:
string
Returns
boolean
is
Same
is
Same
(
other
)
:
boolean
Beta
Parameters
other
:
ScriptObject
Returns
boolean
register
Entity
Prototype
register
Entity
Prototype
(
prototypeData
)
:
IGuard
Beta
Parameters
prototypeData
:
EntityPrototypeData
Returns
IGuard
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
create
Entity
get
Caption
For
Type
get
Entity
Types
get
Icon
For
Type
get
Type
Name
is
Of
Type
is
Same
register
Entity
Prototype
Lens Scripting API
Guide Docs
Editor Scripting API
Loading...