Commit Graph

166 Commits

Author SHA1 Message Date
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
Zhang mingzhen 37e67d55c8 Richtext add child optimization v3.7 (#13002)
* add child optimization(in 3.6.2)

(cherry picked from commit 6f44dd375faa1d62becf25818abc4f83ad7e08d1)

* add estimation before calculate size precisely

(cherry picked from commit 92b26a6f6b8f78abd2bcafffbe2a9c86b18a1e50)

* add anotations

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-10-10 16:00:56 +08:00
Zhang mingzhen bfa5a0ef18 richtext addChild optimization (#12928)
* 1. remove rebundant invoking
2. ttf canvas texture resizes to width and height as (1,1)

* remove start() and move it to onLoad()

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-28 11:39:29 +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
Zhang mingzhen f40cbe910d sort the attributes (#12904)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-27 14:44:25 +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
minggo bd0fcc67c4 move cocos/core/pipeline to cocos/rendering (#12797)
* move cocos/core/pipeline to cocos/rendering
2022-09-16 16:10:26 +08:00
minggo b035f697bf Merge pull request #12769 from cocos/v3.6.1
V3.6.1
2022-09-15 09:46:23 +08:00
santy-wang 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
ChiaNing 6ec93687b5 mask node active bug fix (#12734)
* mask node active bug fix

* misc
2022-09-09 19:33:49 +08:00
minggo 4261ccae76 move cocos/core/renderer to cocos/render-scene (#12729)
* move cocos/core/renderer to cocos/render-scene

* fix compiling error on native
2022-09-09 18:19:06 +08:00
ChiaNing 2f1567bb7d mask interface deprecated (#12667)
* mask interface deprecated

* fix

* warn add

* warnid

* msic
2022-09-09 16:34:43 +08:00
Zhang mingzhen 63ee31606a when checking useSystemFont, the fontFamily should appear (#12684)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-09-08 10:36:54 +08:00
minggo 2f10f48c15 adjust some folders (#12712)
move cocos/core/asset-manager to cocos/asset/asset-manager
move cocos/core/assets to cocos/asset/assets
merge cocos/core/builtin to cocos/asset/asset-manager
2022-09-07 18:45:54 +08:00
minggo aba9fdb63f Merge branch 'v3.6.1' into merge_v3.6.1 2022-09-02 20:08:18 +08:00
ChiaNing 482b20ea47 Mask Refactoring (#12636)
* first version mask

* image stencil material fix

* misc fix

* type change fix

* export fix

* some native code

* native fix

* use less remove

* remove isForMask

* material change

* delate sprite frame

* use less remove

* misc fix

* ci

* mate updte

* de

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-09-02 10:17:44 +08:00
Zhang mingzhen ec2043092e filled sprite color is incorrect with uiOpacity parent (#12533)
* 1. updateColorLate is rebundant
2. UIOpacity add node condition

* consistent interrupt opacities should be multiplied to the entity

* remove entity is null condition

* use isValid

* add comment

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-30 11:21:37 +08:00
Zhang mingzhen 8588c50db7 richtext-resetStates: use assert and remove unreasonable and deprecated condition (#12565)
* use assert and remove unreasonable and deprecated condition

* add debug condition

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-30 10:44:20 +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
ChiaNing f71ce47c10 fix native mask invert bug (#12362)
* fix native mask invert bug

* version change

* version change

* lock version change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-09 18:38:07 +08:00
Zhang mingzhen 013b4b42f9 remove char mode condition in set entity color (#12355)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-09 18:37:06 +08:00
Zhang mingzhen de0cde06e0 remove rebundant code. (#12352)
dont need to set color for children

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-08-09 18:36:32 +08:00
ChiaNing f2a1191b6d fix mask type change bug (#12340)
* fix mask type change bug

* enable fix

* fix

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-05 11:54:30 +08:00
ChiaNing 5e5c037e7b fix label vertex color bug (#12306)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-03 17:06:47 +08:00
ChiaNing e2eb71b9a1 fix ui mesh renderer enable bug (#12265)
* fix ui mesh renderer enable bug

* add canRender

* remove material protect

* misc fix

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-29 14:01:36 +08:00
Santy-Wang 52cd47fa08 optimize frame animation performance (#12209)
* optimize frame animation performance

* refine code
2022-07-27 10:21:13 +08:00
ChiaNing 310525e358 fix ui Model proxy memory leak (#12184) 2022-07-26 15:37:46 +08:00
Santy-Wang 07facb9bf1 optimize memory (#12157) 2022-07-23 15:28:25 +08:00
ChiaNing 74ebf33dc5 fix mask default material bug (#12070)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 17:16:29 +08:00
Santy-Wang ddfa13e4cf optimize a bit jsb call (#12065) 2022-07-19 11:36:25 +08:00
Zhang mingzhen 1fd70ef5e7 UIOpacity and UIRenderer recursion bug (#12015)
* optimize JSB sync in every frame

* opacity bug, enabled doesn't sync to native

* UIOpacity and UIRenderer recursion

* avoid parameters are undefined

* resolve circular dependency

* exclude UIMeshRenderer in setEntityColorDirtyRecursively

* exclude UIMeshRenderer in UIOpacity setEntityLocalOpacityDirtyRecursively

* blend hash should put into passdirty

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-18 15:42:02 +08:00
ChiaNing 968c3837fc Fix sprite render bug when Sprite Frame is null (#12041)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 18:09:03 +08:00
ChiaNing 4534698708 mask _updateBuiltinMaterial overload (#12033)
* mask update material overload

* function change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 13:35:12 +08:00
ChiaNing 6b64c7e8da Remove custom Material flag (#12021)
* Remove custom Material flag

* remove commit model material

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 09:36:32 +08:00
Santy-Wang 945e715a9c restructure life cycle (#11971)
* restructure life cycle

* fix bugs

* optimize

* remove some code

* refine

* fix dragonbone custom material

* fix particle crash

* changed to CCAssert

Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-14 16:33:30 +08:00
Zhang mingzhen 05bde85ed7 V3.6.0 batcher2d code sorting (#11943)
* parentOpacity move to RenderEntity

(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)

* parentOpacity remove from entity and put into funtion parameters

* unify dynamic and static handle process

* reform entity shared buffer structure

* modify default value of struct

* set drawinfo type for spine/dragonbones

* remove legacy method

* reform color .type as uint8 from float

* CI fix

* remove static-cast

* CI fix

* CI fix

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-13 15:48:31 +08:00
ChiaNing 295b2eb23a fix mask layer bug (#11955)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-13 11:47:32 +08:00
ChiaNing edbe0fd983 fix mask graphics (#11941)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-12 15:20:28 +08:00
ChiaNing d13ebb2fdb Mask image-stencil change (#11932)
* Mask image-stencil change

* CI fix

* size change

* event change

* event change

* event

* mask type change to native

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-12 13:36:50 +08:00
Zhang mingzhen 731d703648 Mask to native bug fix (#11913)
* mask inverted bug fix

(cherry picked from commit dc695c992983042ca7af3ac91051db40049dfbd1)

* sync customMaterial for commitIA of middleware in native

* fix CI

* remove abundant mask code

* add nolint

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-11 13:43:56 +08:00
Zhang mingzhen 0560b566df V3.6.0 batcher2d mask to native (#11905)
* native mask 1

* native rect mask part2

(cherry picked from commit 363c6a545302c15bbbd33285c172855e667c308d)

* fix code specification

* mask fillPass parameters

* fix mistake

* fillpass material condition

* mask to native generate batch

* revert wrong remove

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-09 00:57:25 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +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
Zhang mingzhen 7dd8582600 if delete font, set userDefinedFont as null (#11434)
* if delete font, set userDefinedFont as null

* simplify condition

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-06-14 16:14:53 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
pandamicro dba83c270d Fix multi blank lines (#11116) 2022-05-17 11:56:06 +08:00
Zhang mingzhen efc0113b67 assign underline initial value when label segments are contructed in richtext (#10828)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-05-14 18:45:14 +08:00
ChiaNing 045e6430cb add base-Renderer and separate & rename renderableComp (#10903)
* add base-Renderer and separate & rename renderableComp

* rename

* some fix

* misc fix

* format change

* file name change & api doc add

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-05-09 17:44:56 +08:00
Leslie Leigh (李的序) 5fd18f942b Fix missed links (#10938) 2022-05-06 10:10:36 +08:00