PP
4c0f664960
[AOT] add type for AOT engine ( #15527 )
...
* fix object
* fix action
* fix type in instantiate.ts
* fix type for NodeEventProcessor
node_event_processor
* fix type in input.ts
* fix particle system
* fix color type
* fix CI
* add tracking issue
2023-06-28 11:24:40 +08:00
PP
509d73b27d
merge branch v3.8.0-aot ( #15421 )
...
* PR1: add explicit function return type (#15311 )
* PR4: add explicit function return type (#15314 )
* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233 (#15314 ) (#15357 )
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
* add function return type
* fix version checking
* fix return type
---------
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com >
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2023-06-13 18:08:45 +08:00
dogeFu
09e000266d
feature : add EDITOR_NOT_IN_PREVIEW marco ( #15354 )
...
* feature : add marco for editor preview and refactor code with new marco
* refactor: replace GAME_VIEW with EDITOR_PREVIEW
* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"
This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.
* update cc config json
* refactor code
* remove uselese parentheses
* set ccglobal to be false
* skip global variable test case
2023-06-07 17:52:51 +08:00
minggo
a22d16bbe6
Merge branch 'v3.7.3' into merge_v3.7.3
2023-04-24 11:26:58 +08:00
fqamic
36b69d4fd7
engine support to webxr ( #14861 )
...
* feat: input support to webxr
1.new webxr gamepad event
2.new webxr handle pose event
3.support webxr hmd pose event
* feat: split the frameMove function to support xr readability
* feat:Add webxrFrameMove for webxr
* improve:xr stands for globalThis.globalXR
* improve(xr):format code
* fix: webxr gamepad update cache error
* fix: webxr gamepad update cache error
* fix: code naming error
* fix: update cache right gamepad data error
* improve: any is enough for any | undefined
* improve: modify interface PoseInfo and IGamepadCacheInfo
* improve: declare IGamepadCacheInfo
* fix: globalThis.__globalXR is undefined
---------
Co-authored-by: linyuanyi <1111>
2023-04-20 23:23:15 +08:00
PP
e01ac3ee05
add tracking issue for TODO item ( #14638 )
...
* issue 14637
* issue 14640: animation module
* issue 14642: serialize deserialize hack
* issue 7519: pal/image
* issue 14643: dynamic inject
* mark as NOTE
* issue 14644: native only
* issue 7512: pal/fs
2023-03-23 16:42:46 +08:00
PP
fa51b804b5
remove and ban @ts-expect-error ( #14572 )
...
* remove ts-expect-error usage in engine
* deprecate Scheduler interface
* remove JavaScriptCore
* set some engineInternal public property as getter setter
* fix build-declaration
* fix releaseManager export name conflict
* update scriptEngineType
* fix and update some comment
* remove w_mat, w_pos, w_rot, w_scale
* update renderer
* fix setRootBufferDirty not binding on native
* optimize floatToHashString
* mark NOTE
2023-03-20 13:48:26 +08:00
pandamicro
afd22296b4
MIT license update and to new year 2023 ( #13927 )
...
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
minggo
03b5d4c3fd
Merge branch 'v3.6.3' into merge-v3.6.3
2022-12-08 15:46:09 +08:00
江战
f2d747f9c7
Fix: user handler exceptions lead to endless loop ( #13647 )
2022-12-05 14:47:54 +08:00
fqamic
2316dc77c1
improve(xr):Rename Handset to Handheld ( #13558 )
...
Co-authored-by: linyuanyi <1111>
2022-11-28 11:30:27 +08:00
fqamic
d4055f7e32
new basic capabilities of supporting handset ar and webxr ( #13420 )
...
* feat: add the basic capability of handset ar native
* feat: add handset input device, for ar camera pose
* feat: native pack tool supports xr platform name
* feat: web gl context supports webxr
* feat: webxr has been converted to screen coordinates via camera
* fix: pr ts-expect-error undefined xr
* feat: support webxr, and remove ar redundant code
* fix:xr-spaces gradlew permission error
* feat: revert redundant ar engine feature
* fix: eslint check error
* feat: remove redundant code
* fix: eslint check warning
* adjust armodule process in forward stage, mtl texture and jsb
* fix: exlint warning, and add license
* adjust ar lib and interfaces
* change webxr check interface
* merge external arlib header and move it to engine
* improve: update native external version
* move ar background stage to xr/rendering and move its init to webxr device in xr plugin
* fix format error
* fix format error
* adjust jsb_ar_manual, ARModule, ARBackground
* adjust arbackground
Co-authored-by: Parryzhai <1306895355@qq.com >
Co-authored-by: MoHai <1192652394@qq.com >
2022-11-24 13:33:50 +08:00
timlyeee
687bf38897
revert part of commit ( #13472 )
2022-11-22 11:44:33 +08:00
timlyeee
e48b1f225e
add windowId as a parameter for MouseWheel ( #13433 )
...
* add windowId as a parameter for MouseWheel
* set window id to 1 by default
2022-11-21 10:32:51 +08:00
PP
f64250a9e3
support dispatching event on native platform ( #12705 )
...
* support dispatching event on native platform
* pass widnowId
* fix ci
2022-11-14 10:33:48 +08:00
minggo
83a2717fac
Fix module import ( #13140 )
...
* fix core module import style
* import murmurhash2_32_gc from core module
* do not export visibleRect
2022-10-25 16:38:38 +08:00
minggo
0d7c5c8f56
move cocos/core/scene-graph to cocos/scene-graph ( #12868 )
...
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
- component.ts
- component-event-handler.ts
- component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`:
- missing-script.ts
- model-renderer.ts
- renderer.ts
- camera-component.ts
* move `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
林玮
785fd91511
Add multi-windows support ( #12243 )
...
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com >
2022-09-15 14:55:44 +08:00
PP
e6e964af15
fix: EventTouch.getAllTouches() should not include changedTouches when it's TOUCH_END ( #12700 )
2022-09-13 17:08:57 +08:00
Zhang mingzhen
2879bb044b
add deprecated tag of "Renderable2D" ( #12606 )
...
* add deprecated tag
* move it to 2d
* supplement other 2d deprecated tags
* fix CI
* add policy description
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2022-09-01 10:17:11 +08:00
QingliWang
6a8f53b186
Add features for XR developement. ( #12413 )
...
* Change Android mainloop, add global config and template projects for XR.
* Change gfx/gles device's process flow for XR, working with other PRs, waiting.
* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.
* Change render process for XR.
* Develop XR input and events.
* Develop 3D feature of UI widgets and raycast effect for XR.
Co-authored-by: fqamic <fqamic@vip.qq.com >
2022-08-22 16:34:45 +08:00
PP
016418626d
update deprecated info ( #11985 )
2022-07-14 17:17:32 +08:00
王凯鹏
6797a841f6
fix system_event.on not working in gameview mode ( #11891 )
2022-07-08 12:55:39 +08:00
PP
151eeb3dce
deprecate exported x-deprecated interface ( #11802 )
...
* deprecate exported x-deprecated interface
* update
* update docs
2022-07-01 21:54:15 +08:00
PP
7f41b05cfe
support top level deprecate check ( #11630 )
...
* support __checkObsolete__
update
update deprecate info
update
fix ci
fix ci
update
* rename interface
* cache namespace proxy
* move deprecate info to version deprecated
* consider undefined Proxy
2022-07-01 11:55:05 +08:00
王凯鹏
d0a8a4fbc4
support gameview ( #11514 )
2022-06-20 13:36:34 +08:00
PP
d0bd6b7376
support input dispatch event for Editor ( #11471 )
...
* support input dispatch event for Editor
* update internal
* fix eslint
* fix bug
* update
2022-06-14 16:10:18 +08:00
PP
09ce5e85a8
correct MOUSE_WHEEL comment ( #11191 )
...
* correct MOUSE_WHEEL comment
* update
2022-05-24 11:55:27 +08:00
pandamicro
dba83c270d
Fix multi blank lines ( #11116 )
2022-05-17 11:56:06 +08:00
Santy-Wang
23de9188ba
V3.5 docs ( #10898 )
...
* adjust api docs and delete useless annotation
* delete useless annotation
2022-04-27 15:22:22 +08:00
Santy-Wang
e82cec17ac
update docs ( #10796 )
...
* update docs
* update docs more
* refine
* refine
2022-04-20 18:47:53 +08:00
Santy-Wang
a963881d4e
add category config file for docs ( #10589 )
...
* add category config file for docs
* add input module
* adjust name
2022-03-30 18:32:37 +08:00
Santy-Wang
ab82e1b42d
remove hidden ( #10414 )
...
* remove hidden
* fix typo
* fix unit-test
* turn on auto fix
2022-03-22 15:11:16 +08:00
PP
09f5a029ab
support EventDispatcherPriority ( #9976 )
...
* expect error requestPermission undefined
* support EventDispatcherPriority
* Revert "expect error requestPermission undefined"
This reverts commit fb08ba61987600c8a9237b4202dc46e22e298636.
* fix systemEvent touch event
* Revert "revert deprecate system event (#9941 )"
This reverts commit d69d18dc7b .
* optimize code
2022-01-14 10:48:13 +08:00
PP
d69d18dc7b
revert deprecate system event ( #9941 )
2022-01-07 17:27:54 +08:00
PP
bc0f912279
fix keyboard event listening on mobile ( #9935 )
...
* fix keyboard event listening on mobile
* update deprecation info
2022-01-06 23:05:56 +08:00
PP
1df4a6b623
compability for string SystemEventTypeUnion ( #9934 )
...
* compability for string SystemEventTypeUnion
* fix CI
2022-01-06 18:29:27 +08:00
PP
e7761b0640
fix event MOUSE_WHEEL can't be swallowed by node ( #9931 )
...
* fix event MOUSE_WHEEL can't be swallowed by node
* dont export pointerEvent2SystemEvent
* fix CI
2022-01-06 18:24:22 +08:00
PP
6096119f62
support input dispatch immediately ( #9652 )
...
* support input.dispatchImmediately
* optimize input._frameDispatchEvents()
* optimize dispatchOrPushEventTouch
stash
* no need to ban frame dispatch events
* change dispatchImmediately as private property
2021-11-12 20:12:36 +08:00
PP
d39ce3d3d8
support preventSwallow on EventMouse && EventTouch ( #9621 )
...
* support swallowedByTopNode on EventMouse && EventTouch
* experimental
* deprecation
* revert deprecate touch
* use swallowEvent
* update
* use preventSwallow
2021-11-05 14:04:54 +08:00
PP
3a6628d88f
fix registering custom event callback on systemEvent ( #9592 )
...
update
update
2021-11-01 18:16:14 +08:00
PP
45f7a7a591
remove event manager ( #9493 )
2021-10-15 19:30:42 +08:00
PP
f5511f4c87
Revert "Revert "optimize interface in screen module ( #9176 )"" ( #9490 )
...
This reverts commit b88d4845cc .
2021-10-15 10:21:04 +08:00
pandamicro
b88d4845cc
Revert "optimize interface in screen module ( #9176 )"
...
This reverts commit 4735476945 .
2021-10-14 23:07:23 +08:00
PP
4735476945
optimize interface in screen module ( #9176 )
...
* optimize interface in screen module
* remove DPR calculating
* update screen-adapter init
* set screen.resolutionScale as 1 by default
* remove pixelRatio getter in system-info
* remove sys.windowPixelRatio access
* optimize screen.windowSize
update
* convertToCocosScreenSpace
* change resolution-change to window-resize
* fix native UI
update
update UI
update UI
* optimize screen init
* fix subContextView
* fix root resize
* fix precision issue on Metal render end
* sys.windowPixelRatio
* use warnID
* remove screen.convertToCocosScreenSpace
* put private property and method together after public ones
* warnID
* fix landScape on CocosPlay
* fix DPR on vivo platform
* fix CI
2021-10-14 22:16:34 +08:00
PP
f433551d1d
support system feature query ( #9428 )
...
* support feature query in pal/system-info
* support sys.hasFeature and deprecate sys.capabilities
* remove deprecated usage
* support input feature query
update
* IMAGE_BITMAP
* INPUT_TOUCH
* WEBGL
* support WEB_VIEW, VIDEO_PLAYER, SAFE_AREA query
* rename INPUT_XXX to EVENT_XXX
* support device-manager
update
update
update
* add NOTE
* export deviceManager from gfx
* fix circular dependency
* fix wechat devtools
update
* Revert "fix circular dependency"
This reverts commit ba8a6c0e2e4fa6b2015ae438a4c9a5da94b9bf46.
* Revert "export deviceManager from gfx"
This reverts commit 14b26ca0e3f6e0dce32c37bd668c65193dbd366f.
* Revert "support device-manager"
This reverts commit 010a910e56e1ee2fe9726629fca163fc24ed5b37.
# Conflicts:
# pal/system-info/enum-type/feature.ts
* update
update
* use INPUT_TOUCH for sys.capabilities
* update
2021-10-14 10:29:36 +08:00
santy-wang
bd59f37ede
Merge branch 'v3.2.1' of github.com:cocos-creator/engine into v3.4.0-physx
2021-09-29 10:40:26 +08:00
PP
c61907d731
fix input bug ( #9393 )
...
* attach mask to node event processor
* compatible with systemEvent
* migrate pointer-event-dispatcher into 2d/event module
* update attachMask
2021-09-26 00:31:10 +08:00
PP
5878829d51
refactor UI pointer event dispatcher ( #9363 )
...
* optimize node event processor
# Conflicts:
# cocos/core/scene-graph/node-event-processor.ts
# cocos/core/scene-graph/node.ts
* support pointer event dispatcher
* remove event manager, event listener
# Conflicts:
# cocos/core/director.ts
# cocos/input/index.ts
* remove docs for event-manager
* fix pointer lock on web
* BREAKING-CHANGE: ui-transform.isHit interface
ud
* fix CI
* fix CI
* activeInHierarchy
2021-09-24 13:34:43 +08:00
PP
6f33b656ec
fix multi input instance ( #9361 )
2021-09-22 16:03:56 +08:00