SceneRegion
new SceneRegion(data)
- Source:
Parameters:
| Name |
Type |
Description |
data |
Object
|
场景中预设的区域数据
|
Members
name :string
- Source:
Type:
presetId :string
- Source:
Type:
selfVarId :string
- Source:
Type:
started :boolean
- Source:
Type:
Methods
callEvent(type, triggerActoropt) → {EventHandler|undefined}
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
type |
string
|
|
区域事件类型
|
triggerActor |
Actor
|
<optional>
|
事件触发角色
|
createEventUpdaters()
- Source:
emit(type, triggerActoropt)
- Source:
Parameters:
| Name |
Type |
Attributes |
Description |
type |
string
|
|
区域事件类型
|
triggerActor |
Actor
|
<optional>
|
事件触发角色
|
update(deltaTime)
- Source:
Parameters:
| Name |
Type |
Description |
deltaTime |
number
|
增量时间(毫秒)
|