Commit Graph

163 Commits

Author SHA1 Message Date
mmyduckx 2efe60a576 fix game.init assetDB-warning (#13809)
* fix game.init assetDB-warning
2022-12-14 14:31:14 +08:00
bofeng-song 3c393ae111 Fix audio bugs on the mini-game platform (#13772)
(cherry picked from commit 8ee9ad317190134a51d67045d3d36927b16f9523)
2022-12-09 14:41:50 +08:00
PP c46edb704f fix: wechat Android doesn't support base64 webp (#13663)
* fix: wechat Android doesn't support base64 webp
2022-12-06 10:10:24 +08:00
minggo 8d8c283b59 Merge branch 'v3.6.3' into merge-v3.6.3 2022-11-28 13:37:25 +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
minggo f78617a11d Merge pull request #13509 from yyycggg/v3.6.3
Merge branch 'v3.6.1-taobao' into v3.6.3
2022-11-24 09:46:59 +08:00
timlyeee 6063a4a4c1 [Hack] Jump across the safety policy (#13517) 2022-11-23 17:00:24 +08:00
minggo 5b88e5121d Merge branch 'v3.6.3' into merge_v3.6.3 2022-11-23 16:19:25 +08:00
ycg 071ee7edb7 Merge branch 'v3.6.1-taobao' into v3.6.3 2022-11-23 14:10:14 +08:00
ycg 69edf6d1fa Fix: A filpY operation will be performed after ReadPixels on Taobao. (#13482)
* Fix: npm test error.

* Fix: A filpY operation will be performed after ReadPixels on Taobao.
2022-11-22 16:32:18 +08:00
timlyeee 2a7648de7f [Bug fix] Add detections for innerAudioContext. (#13162)
* [Bug fix] Add detections for innerAudioContext.

1. Pausing an innerAudioContext which is not fully initialized, the currentTime might be null.-https://github.com/cocos/3d-tasks/issues/14080
2. Pause means nothing for a stopped audio
3. InnerAudioContext.destroy behavior is insane that it might not stop the audio immediatly,

* remove log

* get once
2022-11-21 11:29:38 +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
ycg 6c23564835 Fix: Sprite Blend Factor bug for TAOBAO. (#13217)
* Fix: Sprite Blend Factor bug for TAOBAO.

* update Note

* Do not use premultiplication on the phone.

* delete import
2022-11-18 10:58:31 +08:00
fqamic 71314f0e81 merge xr platform function codes (#13360)
* feat: add xr settings for xrEnv and xrType

* improve: remove redundant code for xr interaction

* improve: remove redundant code for frameMove

* fix: xr jsb bind adapt to swig

* feat: adapt to xr preview mode, add handle simulation event
2022-11-14 17:12:25 +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
ycg 1abec3483c support safeArea on TaoBao. (#13260) 2022-11-08 11:21:51 +08:00
ycg 98f35d7729 support landscape on TaoBao (#13259)
* support landscape on TaoBao
2022-11-08 11:19:10 +08:00
ycg df797fdc0a Fix: Update the implementation of the Safe-area on Web. (#13153) 2022-11-07 10:33:16 +08:00
江战 7ccd14e6e6 JSB export math class : Vec2/Vec3/Vec4/Quat/Mat3/Mat4/Color (#12968) 2022-10-31 17:24:54 +08:00
ycg 827a3f0640 Fix: Update the implementation of the supportWebp on minigame. (#13165)
* Fix: Update the implementation of the supportWebp on minigame.
Optimize: Adjust the initialization of the System-info module.

* Add return type of the sys-init function.

* Add try-catch to _supportsWebp method
2022-10-28 10:44:16 +08:00
minggo a354281d7e Fix core import issue (#13148)
* import binarySearchEpsilon from core module

* remove unused files

* import easing from core module

* use array instead

* do not export MutableForwardIterator

* do not export binarySearchBy

* print deprecated information in runtime
2022-10-26 15:19:26 +08:00
ycg e31abca228 Wrong mouse wheel direction on PCWechat (#13101) 2022-10-20 17:59:37 +08:00
ycg 2696288b3f Fix: Left mouse button swipe on WeChat PC is invalid (#13110) 2022-10-20 16:50:29 +08:00
ycg 4e545eb4cb Add Hindi language. (#13084) 2022-10-19 14:32:49 +08:00
ycg d9b3c18210 Adapter Rendering, Editbox, Label and Audio. (#13025)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad

* Adapter  screen-adapter on Taobao

* Remove useless comments

* Adapter EditBox and Label

* Adapter Audio

* Fix: GL.getUniformLocation returns an incorrect value

* Add @typescript-eslint/no-unsafe-return
2022-10-14 15:55:06 +08:00
santy-wang 91c884362d Merge branch 'v3.6.2' of github.com:cocos-creator/engine into v3.6.1-sync 2022-10-11 20:12:14 +08:00
ycg 9d3bfffc82 Fix: toDataURL is not supported for this content on iPhone 7p (#12830)
* Fix: toDataURL is not supported for this content on iPhone 7p
2022-09-28 13:45:42 +08:00
ycg 1181b10f29 Adapter screen-adapter on Taobao (#12922)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad

* Adapter  screen-adapter on Taobao

* Remove useless comments
2022-09-28 13:36:19 +08:00
minggo 95a76235b6 Adjust some files (#12910)
`cocos/core` should not depend other modules, so move some files out of `cocos/core`:
- move some files from `cocos/core` to `cocos/game`
  - director.ts
  - splash-screen.ts
  - game.ts
 - move `cocos/core/root.ts` to `cocos/root.ts` as there is not better module to contain `root.ts`.
 - move `cocos/core/platform/view.ts` to `cocos/ui/view.ts` as screen related logic is moved to `cocos/core/platform/screen.ts`
2022-09-28 09:34:35 +08:00
林玮 e7e8036dcd fix: editor and cocos-play issues (#12908)
* fix: editor and cocos-play issues

* * Change 'windowId' to optional.
2022-09-27 17:45:21 +08:00
ycg 31ad5ab9e1 Adapter System-info on Taobao (#12867)
* Adapter System-info on Taobao

* add  'zh_CN'  for  iPad
2022-09-27 09:52:30 +08:00
timlyeee f341032746 [Optimize] Cache current time for audio player in minigame. (#12814)
* Cache current time for minigames

* Save current time as private member

* Make cache time changed in callback

* update cache time to abort middle state for seek
2022-09-22 14:20:52 +08:00
PP 8a1b31e0ba support Taobao platform (#12819)
* add taobao adapter

* add TAOBAO platform

* add templates

update templates

* fix: readJsonSync can't work on Taobao platform

add TODO

* fix: update import-map

* fix: ban splash screen on Taobao platform

* fix: adapt image loading

* fix: MINIGAME on Taobao platform

* update constant manager

* optimize: skip splash screen on Taobao

* fix: @ separator on Taobao platform

* Revert "fix: @ separator on Taobao platform"

This reverts commit 18903291807ef3263c27a90ad67753da7e531142.

* fix: @

* fix: undefined canvas.addEventListener

* fix: minigame.isDevTool

* fix: createCanvas on canvasOnReady hook

* optimize: event register

* optimize: onCanvasCreated name
2022-09-21 14:50:03 +08:00
林玮 85708b98d2 bugfix: crash when resizing on MacOS (#12816)
* fix: setCursorEnabled crash

* fix: crash when resize on MacOS
2022-09-20 14:13:39 +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
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
timlyeee 4381b41525 V3.6.1 fix audio stuck (#12589) 2022-09-01 11:48:34 +08:00
minggo c5c7b987ea move cocos/core/gfx to cocos/gfx (#12559)
* move cocos/core/gfx to cocos/gfx
2022-08-26 17:51:46 +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 4999d0c315 ensure running audio context (#11996) 2022-07-15 10:03:03 +08:00
Santy-Wang ecb8d5f706 Avoid tick multiple times (#11991) 2022-07-14 17:55:50 +08:00
PP d47f220164 fix wechat cc plugin import scriptPackages (#11967) 2022-07-14 15:11:10 +08:00
Santy-Wang dab024b47b fix stop pacer failed (#11835) 2022-07-04 17:24:24 +08:00
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
PP 613addca36 play web audio after context get running (#11708)
* play web audio after context get running

update

* update
2022-07-01 14:46:44 +08:00
PP 1fccb90926 support audio PCMData and sampleRate getter (#11470)
* support audio buffer and sampleRate getter

update comment

update interface

update

update comment

update jsb.d.ts

update

* support getPCMData

update

support on native

support on miningame

update

* update comment

* add example doc
2022-06-29 13:39:05 +08:00
PP affbf7b90d fix mouse button in MouseMove Event (#11661) 2022-06-27 11:58:14 +08:00
PP ebb9b800b3 remove canvas access warning in Editor (#11709) 2022-06-27 11:50:48 +08:00
王凯鹏 d0a8a4fbc4 support gameview (#11514) 2022-06-20 13:36:34 +08:00