枚举EventType
常用事件类型。
BeforeLevelLoad
层级加载前事件(App)。 string 类型,实际值为 BEFORE_LEVEL_LOAD 。
LevelCreate
层级创建事件,仅触发一次(App)。 string 类型,实际值为 LEVEL_CREATE 。
LevelLoadProgress
层级加载进度事件(App)。 string 类型,实际值为 LEVEL_LOAD_PROGRESS 。
AfterLevelLoad
层级加载后事件(App)。 string 类型,实际值为 AFTER_LEVEL_LOAD 。
Resize
3D Canvas画布大小调整事件(App)。 string 类型,实际值为 RESIZE 。
PointerEnter
指针进入事件(App、Entity)。 string 类型,实际值为 POINTER_ENTER 。
PointerLeave
指针离开事件(App、Entity)。 string 类型,实际值为 POINTER_LEAVE 。
PointerDown
指针按下事件(App、Entity)。 string 类型,实际值为 POINTER_DOWN 。
LeftDown
左键按下事件(App、Entity)。 string 类型,实际值为 LEFT_DOWN 。
CenterDown
中键按下事件(App、Entity)。 string 类型,实际值为 CENTER_DOWN 。
RightDown
右键按下事件(App、Entity)。 string 类型,实际值为 RIGHT_DOWN 。
LongDown
长按事件(App、Entity)。 string 类型,实际值为 LONG_DOWN 。
LeftLongDown
左键长按事件(App、Entity)。 string 类型,实际值为 LEFT_LONG_DOWN 。
CenterLongDown
中键长按事件(App、Entity)。 string 类型,实际值为 CENTER_LONG_DOWN 。
RightLongDown
右键长按事件(App、Entity)。 string 类型,实际值为 RIGHT_LONG_DOWN 。
PointerUp
指针抬起事件(App、Entity)。 string 类型,实际值为 POINTER_UP 。
LeftUp
左键抬起事件(App、Entity)。 string 类型,实际值为 LEFT_UP 。
CenterUp
中键抬起事件(App、Entity)。 string 类型,实际值为 CENTER_UP 。
RightUp
右键抬起事件(App、Entity)。 string 类型,实际值为 RIGHT_UP 。
Click
点击事件(App、Entity)。 string 类型,实际值为 CLICK 。
DoubleClick
双击事件(App、Entity)。 string 类型,实际值为 DOUBLE_CLICK 。
LeftClick
左键点击事件(App、Entity)。 string 类型,实际值为 LEFT_CLICK 。
LeftDoubleClick
左键双击事件(App、Entity)。 string 类型,实际值为 LEFT_DOUBLE_CLICK 。
RightClick
右键点击事件(App、Entity)。 string 类型,实际值为 RIGHT_CLICK 。
RightDoubleClick
右键双击事件(App、Entity)。 string 类型,实际值为 RIGHT_DOUBLE_CLICK 。
CenterClick
中键点击事件(App、Entity)。 string 类型,实际值为 CENTER_CLICK 。
CenterDoubleClick
中键双击事件(App、Entity)。 string 类型,实际值为 CENTER_DOUBLE_CLICK 。
Move
鼠标移动事件(App)。 string 类型,实际值为 MOVE 。
Wheel
鼠标滚轮事件(App)。 string 类型,实际值为 WHEEL 。
Frame
帧事件(App)。 string 类型,实际值为 FRAME 。
AfterFrame
帧更新后事件(App)。 string 类型,实际值为 AFTERFRAME 。
KeyDown
键盘按下事件(App)。 string 类型,实际值为 KEY_DOWN 。
KeyUp
键盘抬起事件(App)。 string 类型,实际值为 KEY_UP 。
AddEntity
添加实体事件(App)。 string 类型,实际值为 ADD_ENTITY 。
RemoveEntity
移除实体事件(App)。 string 类型,实际值为 REMOVE_ENTITY 。
PropertyChanged
属性变化事件(App)。 string 类型,实际值为 PROPERTY_CHANGED 。
CameraModeChanged
相机投影模式变化事件(App)。 string 类型,实际值为 CAMERA_MODE_CHANGED 。
AfterBuild
实体创建后事件(Entity)。 string 类型,实际值为 AFTER_BUILD 。
BeforeDispose
实体释放前事件(Entity)。 string 类型,实际值为 BEFORE_DISPOSE 。
AnimationStart
动画开始事件(Thing)。 string 类型,实际值为 ANIMATION_START 。
AnimationEnd
动画结束事件(Thing)。 string 类型,实际值为 ANIMATION_END 。
文档中心