Search
Preparing search index...
The search index is not available
Spider Engine API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Behavior
Class Behavior
Hierarchy
Asset
Behavior
Implements
IBehavior
Index
Constructors
constructor
Events
inline
Variable
Changed
pin
Changed
Properties
deleted
id
inputs
Position
is
Persistent
name
outputs
Position
template
Path
Accessors
active
Operators
connections
custom
Pins
inline
Variables
operators
owner
Component
pins
version
Methods
activate
Operator
add
Connection
add
Node
add
Variable
clear
Orphan
Variables
copy
deserialize
destroy
fetch
Input
Data
find
Operator
find
Pin
find
Variable
isA
is
Loaded
on
Collision
onUIEvent
remove
Connection
remove
Node
remove
Variable
save
send
Signal
serialize
set
Property
set
State
start
update
update
Inline
Variable
upgrade
is
Connection
Valid
Constructors
constructor
new
Behavior
(
)
:
Behavior
Returns
Behavior
Events
inline
Variable
Changed
inline
Variable
Changed
:
AsyncEvent
<
string
>
= new AsyncEvent<string>()
pin
Changed
pin
Changed
:
VoidAsyncEvent
= new VoidAsyncEvent()
Properties
deleted
deleted
:
AsyncEvent
<
string
>
= new AsyncEvent<string>()
id
id
:
string
inputs
Position
inputs
Position
:
Vector2
= new Vector2()
is
Persistent
is
Persistent
:
boolean
= false
name
name
:
string
outputs
Position
outputs
Position
:
Vector2
= new Vector2(150, 150)
Optional
template
Path
template
Path
:
undefined
|
string
Accessors
active
Operators
get
activeOperators
(
)
:
Operator
[]
Returns
Operator
[]
connections
get
connections
(
)
:
Connection
[]
Returns
Connection
[]
custom
Pins
get
customPins
(
)
:
ReferenceArray
<
BasePin
>
set
customPins
(
customPins
:
ReferenceArray
<
BasePin
>
)
:
void
Returns
ReferenceArray
<
BasePin
>
Parameters
customPins:
ReferenceArray
<
BasePin
>
Returns
void
inline
Variables
get
inlineVariables
(
)
:
ArrayProperty
<
InlineVariable
>
Returns
ArrayProperty
<
InlineVariable
>
operators
get
operators
(
)
:
Reference
<
BehaviorNode
>
[]
Returns
Reference
<
BehaviorNode
>
[]
owner
Component
get
ownerComponent
(
)
:
IBehaviorComponent
set
ownerComponent
(
owner
:
IBehaviorComponent
)
:
void
Returns
IBehaviorComponent
Parameters
owner:
IBehaviorComponent
Returns
void
pins
get
pins
(
)
:
ReferenceArray
<
BasePin
>
Returns
ReferenceArray
<
BasePin
>
version
get
version
(
)
:
number
Returns
number
Methods
activate
Operator
activate
Operator
(
operator
:
Operator
)
:
void
Parameters
operator:
Operator
Returns
void
add
Connection
add
Connection
(
connection
:
Connection
)
:
void
Parameters
connection:
Connection
Returns
void
add
Node
add
Node
(
operator
:
BehaviorNode
)
:
void
Parameters
operator:
BehaviorNode
Returns
void
add
Variable
add
Variable
(
variable
:
InlineVariable
)
:
void
Parameters
variable:
InlineVariable
Returns
void
clear
Orphan
Variables
clear
Orphan
Variables
(
)
:
InlineVariable
[]
Returns
InlineVariable
[]
copy
copy
(
preserveId
?:
undefined
|
false
|
true
)
:
Behavior
Parameters
Optional
preserveId:
undefined
|
false
|
true
Returns
Behavior
deserialize
deserialize
(
json
:
SerializedObjectType
)
:
Behavior
Parameters
json:
SerializedObjectType
Returns
Behavior
destroy
destroy
(
)
:
void
Returns
void
fetch
Input
Data
fetch
Input
Data
(
operatorId
:
string
)
:
void
Parameters
operatorId:
string
Returns
void
find
Operator
find
Operator
(
id
:
string
)
:
undefined
|
BehaviorNode
Parameters
id:
string
Returns
undefined
|
BehaviorNode
find
Pin
find
Pin
(
operatorId
:
string
, pinId
:
string
)
:
undefined
|
BasePin
Parameters
operatorId:
string
pinId:
string
Returns
undefined
|
BasePin
find
Variable
find
Variable
(
id
:
string
)
:
undefined
|
InlineVariable
Parameters
id:
string
Returns
undefined
|
InlineVariable
isA
isA<T>
(
type
:
object
)
:
boolean
Type parameters
T
Parameters
type:
object
constructor
:
function
new __type
(
...
args
:
any
[]
)
:
T
Parameters
Rest
...
args:
any
[]
Returns
T
Returns
boolean
is
Loaded
is
Loaded
(
)
:
boolean
Returns
boolean
on
Collision
on
Collision
(
info
:
CollisionInfo
)
:
void
Parameters
info:
CollisionInfo
Returns
void
onUIEvent
onUIEvent
(
handler
:
function
)
:
boolean
Parameters
handler:
function
(
uiOperator
:
UIEvents
)
:
boolean
Parameters
uiOperator:
UIEvents
Returns
boolean
Returns
boolean
remove
Connection
remove
Connection
(
connection
:
Connection
)
:
InlineVariable
[]
Parameters
connection:
Connection
Returns
InlineVariable
[]
remove
Node
remove
Node
(
node
:
BehaviorNode
)
:
object
Parameters
node:
BehaviorNode
Returns
object
removed
Connections
:
Connection
[]
removed
Variables
:
InlineVariable
[]
remove
Variable
remove
Variable
(
variable
:
InlineVariable
)
:
void
Parameters
variable:
InlineVariable
Returns
void
save
save
(
folderPath
?:
undefined
|
string
)
:
void
Parameters
Optional
folderPath:
undefined
|
string
Returns
void
send
Signal
send
Signal
(
operatorId
:
string
, pinId
:
string
)
:
void
Parameters
operatorId:
string
pinId:
string
Returns
void
serialize
serialize
(
)
:
SerializedObjectType
Returns
SerializedObjectType
set
Property
set
Property
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
set
State
set
State<T>
(
props
:
ObjectProps
<
T
>
)
:
void
Type parameters
T
Parameters
props:
ObjectProps
<
T
>
Returns
void
start
start
(
)
:
void
Returns
void
update
update
(
)
:
void
Returns
void
update
Inline
Variable
update
Inline
Variable
(
id
:
string
, other
:
InlineVariable
)
:
void
Parameters
id:
string
other:
InlineVariable
Returns
void
upgrade
upgrade
(
json
:
SerializedObject
, previousVersion
:
number
)
:
SerializedObject
Parameters
json:
SerializedObject
previousVersion:
number
Returns
SerializedObject
Static
is
Connection
Valid
is
Connection
Valid
(
behavior
:
Behavior
, src
:
PinReference
, dest
:
PinReference
)
:
boolean
Parameters
behavior:
Behavior
src:
PinReference
dest:
PinReference
Returns
boolean
Globals
Behavior
constructor
inline
Variable
Changed
pin
Changed
deleted
id
inputs
Position
is
Persistent
name
outputs
Position
template
Path
active
Operators
connections
custom
Pins
inline
Variables
operators
owner
Component
pins
version
activate
Operator
add
Connection
add
Node
add
Variable
clear
Orphan
Variables
copy
deserialize
destroy
fetch
Input
Data
find
Operator
find
Pin
find
Variable
isA
is
Loaded
on
Collision
onUIEvent
remove
Connection
remove
Node
remove
Variable
save
send
Signal
serialize
set
Property
set
State
start
update
update
Inline
Variable
upgrade
is
Connection
Valid