Commit Graph

1553 Commits

Author SHA1 Message Date
zheng han 87affc076d add type for Prefab related classes (#8100)
* add types info

* fix type mistake

Co-authored-by: Santy-Wang <wh19930829@qq.com>
2021-01-08 14:34:19 +08:00
Knox 4840d1279d improve prefab (#8087)
* add prefab-link

fix prefab cc.CompPrefabInfo name error
fix prefab child node hierarchy issue

* refine code

* refine code
2021-01-08 14:32:31 +08:00
troublemaker52025 383245104e fix native platform node layer error (#8094) 2021-01-08 13:52:35 +08:00
PP 52bf6ff194 fix atob undefined (#8090)
* fix atob undefined

* fix lint

* remove atob in physics-ammon.ts
2021-01-08 10:18:19 +08:00
ChiaNing 0a6a007c0f add canvas pool length settings (#8093)
* add canvas pool length settings

* name change
2021-01-07 14:13:06 +08:00
ChiaNing e19708ff91 compress texture fix (#8089) 2021-01-06 18:46:02 +08:00
ChiaNing 96e632fb4f UI Memory Leak fix (#8081)
* UI Memory Leak fix

* update
2021-01-06 15:10:16 +08:00
yeshao2069 b7627817e8 fix view.setFrameSize bug (#8059)
* fix view.setFrameSize bug

fix view.setFrameSize bug

* fix ci

fix ci error

* fix ci

fix ci

* fix ci

* fix ci

* fix ci

* fix ci

* optimization

optimization

* fix ci

fix ci
2021-01-05 17:38:49 +08:00
Leslie Leigh (李的序) 21826607b1 Fix lint errors (#8029)
* Fix lint errors

* Update

* Sync https://github.com/cocos-creator/engine/pull/2433

* Typo
2021-01-05 17:30:40 +08:00
jiaxin.lai 474724a128 Typing&deprecated (#8069)
* typing contact data

* remove raycast relative API in render scene
2020-12-31 17:41:34 +08:00
pandamicro 84f2b5b742 Fix ui canvas event priority and deprecation (#8062)
* Fix UI event priority sorting issue

* Fix canvas deprecation

* Fix ci

* Fix ci

* Fix eslint
2020-12-31 13:45:15 +08:00
Leslie Leigh (李的序) d96ee5179e Fix system event typing (#8063) 2020-12-31 13:39:07 +08:00
cary fcbe208a9f Fix the crash of render texture scene on metal. (#8056) 2020-12-30 20:58:50 +08:00
ChiaNing 0a890af46d game pause update (#8047)
* game pause update

* change setAnimFrame postion
2020-12-30 17:44:18 +08:00
Yun Hsiao Wu 0e1031e852 webgl2: immutable textures (#8051) 2020-12-30 17:31:15 +08:00
cary b1379ddeed Export pipeline class for editor. (#8049) 2020-12-30 15:46:43 +08:00
zheng han 33c427ebf4 keep prefabInfo of prefabInstance (#8046) 2020-12-29 21:02:41 +08:00
zheng han 78e5b01774 fix prefab asset instaniate (#8044) 2020-12-29 17:19:14 +08:00
zheng han 53f8360a07 new prefab system (#8000)
* add prefab instance

* add prefab instance

* support add normal child in prefabInstance

* add prefabInstance check

* remove active restore

* remove unused method

* fix CI

* add children in prefabInstance

* format

* fix ci

* fix according to review suggestion

* add null check

* fix CI

* move prefabInstance into prefabInfo

* fix problem according to review
2020-12-28 21:49:27 +08:00
Santy-Wang 77925094f2 avoid waiting too long when fps is is low (#8040) 2020-12-28 19:40:01 +08:00
Yun Hsiao Wu d2bb41a1d7 adapt gfx changes (#8019) 2020-12-28 17:23:06 +08:00
Leslie Leigh (李的序) f9cc7387f2 Add AnimationState.current, AnimationState.ratio (#8037) 2020-12-28 16:24:45 +08:00
Leslie Leigh (李的序) 0dd04b4d3f Accessibility & Linting fix for AnimationState (#8034)
* Accessibility & Linting fix for AnimationState

* Update

* Update
2020-12-28 11:53:47 +08:00
ChiaNing 66555423da ui pass refactoring (#8024)
* ui pass refactoring

* native fix & blend hash update

* doc update
2020-12-26 18:42:14 +08:00
ChiaNing 4461eb1d12 DynamicAtlas support (#8017)
* DynamicAtlas support

* CI fix
2020-12-26 14:28:30 +08:00
Santy-Wang 75d8b8add2 Lint asset manager (#8002)
* lint asset manager and refine d.ts

* refine

* refine d.ts
2020-12-25 20:43:44 +08:00
jiaxin.lai 29a71884c1 fix tween when property equals 0 (#8018)
* fix tween when property equals 0

* more check

* tweaks
2020-12-25 15:44:19 +08:00
cary 368fe4ca94 Set depthStencilAttachment store to discard. (#8016) 2020-12-25 14:36:47 +08:00
jiaxin.lai 717fc2d73f destroy image on jsb (#8011) 2020-12-25 10:28:07 +08:00
echoooooo dabc6f2188 fix: _initEvents() called twice (#8010) 2020-12-24 19:12:04 +08:00
Santy-Wang ad4bff3988 Restructure Module (#7968)
* module restructure

* refine

* restructure module

* merge

* revert

* fix ci

* update import path of unit-test

* split 2d and ui

* add more module

* change audio adapter

* rename primitive

* config wechat plugin

* merge

* add category config

* merge

* merge
2020-12-24 19:07:26 +08:00
cary f15be6fe1e Modify the forward rendering process and remove UIFlow. (#7940) 2020-12-24 16:09:31 +08:00
owen f811378b7f 3.0 spine native sdk adapter (#7999) 2020-12-24 10:25:34 +08:00
troublemaker52025 8a57007acb fix repeatedly created camera errors (#8006)
* fix repeatedly created camera errors

* protected map.geter()

* update
2020-12-23 19:17:50 +08:00
Leslie Leigh (李的序) a069eeca2f Optimize shader sources build (#7998)
* Optimize shader sources build

* Linting

* HTML5, WeChat branch

* Comment
2020-12-23 16:29:58 +08:00
troublemaker52025 17c4946b66 Canvas split 2D camera (#7987)
* update

* update

* update

* update

* fix eslint error

* update

* update

* Add protection mechanism

* fix pr

* fix pr

* createCamera() changed public

* revert

* revert

* update

* fix  remove camera component error

* update

* update
2020-12-22 18:36:30 +08:00
pandamicro 9b75d50b1b Improve game mainLoop safety (#7796)
* Improve game mainLoop safety

* Fix ci

* Fix ci

* Fix game pause state set

* Fix game init timing

* Fix camera component imports

* Fix eslint warnings

* allow dangling underscores

* Fix more warning
2020-12-22 18:19:40 +08:00
Santy-Wang c92fe2d81e fix release issue in editor (#7997) 2020-12-22 11:27:47 +08:00
cary db5eafc4a9 Fix the problem of inaccurate calculation of curve interpolation. (#7994)
* Fix the problem of inaccurate calculation of curve interpolation.

* fix eslint error
2020-12-22 10:31:37 +08:00
Santy-Wang 477ca2cb5f Revert "Canvas split Camera (#7955)" (#7983)
This reverts commit d0e7e6d9a4.
2020-12-18 14:47:09 +08:00
JoneLau e267479e41 optimized layout (#7970)
* optimized layout

* type If none, do nothing
2020-12-18 14:08:21 +08:00
troublemaker52025 d0e7e6d9a4 Canvas split Camera (#7955)
* revert

* fix eslint ci

* fix ci

* update

* update
2020-12-18 11:12:53 +08:00
Knox 695473c503 add Size to animation bound target (#7972) 2020-12-16 14:36:24 +08:00
PP e737190f54 optimize code in sys.ts (#7966)
* remove platform  related code in sys.ts

* remove browserType for minigame
2020-12-16 13:48:22 +08:00
Leslie Leigh (李的序) a3207d6bcb Suppress no-initializer warns if the property is declared to have object type (#7917)
* Suppress no-initializer warns if the property is declared to have object type

* Use 'default' in

* Update

* Revert

* Revert

* Update
2020-12-15 17:23:41 +08:00
troublemaker52025 c94b0b5aba Optimize transparent shadows (#7918)
* Optimize transparent shadows

* use eslint

* update
2020-12-15 13:54:36 +08:00
PP 0a836ac458 optimize sys info init && move in runtime adapters (#7920)
* optimize sys info init in adapters

update

* update sys init

update sys

* fix sys access

* optimize isWebIOS14OrIPadOS14Env

* update

* update

* update QTT adapter

* update sys.capacities

update sys

* update common && qtt

* add downloadFile to job module

* update engine-adapter

* update DeviceMotionEvent  adaption

* remove legacy qtt

* add link-sure adaption

* fix some bug

* update vivo adaption && fs-utils

* remove legacy link-sure

* remove dom-adapter

* remove HTMLCanvas appended to document

* update vivo

* support COCOS_PLAY

* update adapters to platforms

* remove test code

* add OPPO adapter

* add huawei adapter

* remove test code

* rename folder oppo-mini-game

* rename  folder huawei-quick-game

* rename folder vivo-mini-game
2020-12-15 11:54:13 +08:00
江战 8dcc1b372f [3.0] spine enable _premultipliedAlpha (#7960)
* fix material defines

* fix compile error
2020-12-14 18:13:20 +08:00
minggo 1277eb0288 change gfx backend initialization order (#7958)
iOS/macOS do not check gles2
android/windows check gles3 first
2020-12-14 14:13:48 +08:00
yeshao2069 d77bb856da [sync to 3.0]fix : when destory node, 'this._siblingIndex' is not update (#7938)
* fix : when destory node, 'this._siblingIndex' is not update

* update parent._updateSiblingIndex

update parent._updateSiblingIndex
2020-12-14 13:55:05 +08:00