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
zvars
a33e81106d
fix tiled map object node layer & tileset from atlas supported ( #13609 )
...
* tiled map tileset import from atlas is supported.
fix node layer error created in TiledObjectGroup.
* CRLF -> LF
* revert tiled-object-group.ts imports changes
* revert tiled-object-group.ts imports changes
* fix tiled layer don't repaint when the camera has changed (position, size, etc.)
* this commit has move to branch 'tiled-layer-repait-fix'
* Better variable naming to follow convention
---------
Co-authored-by: pandamicro <lphuabin@gmail.com >
2023-05-24 18:53:08 +08:00
zvars
583d5b6bbd
fix tiled layer don't repaint when the camera has changed (position, size, etc.) ( #13625 )
2023-05-24 16:03:07 +08:00
PP
08aa8283b3
fix compile error in tmx-xml-parser.ts ( #14793 )
2023-04-14 10:24:44 +08:00
minggo
60fa48ba7c
make UIRenderer._srcBlendFactor protected ( #14685 )
...
* make UIRenderer._srcBlendFactor public
2023-03-30 14:44:12 +08:00
PP
dcc0b8d52e
support SafeArray and SafeRecord to optimize type checking ( #14595 )
...
* support SafeArray and SafeRecord to optimize type checking
2023-03-22 10:19:39 +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
PP
386ec2895a
[cherry-pick] AOT-3: optimize uinstrict code ( #14315 ) ( #14523 )
...
* AOT: optimize uinstrict code
- mark some unstrict code as TODO
- remove some unstrict code
* update comment
* remove ts-check
# Conflicts:
# cocos/2d/framework/deprecated.ts
# cocos/asset/assets/image-asset.jsb.ts
# cocos/asset/assets/texture-base.ts
# cocos/core/assets/image-asset.ts
# cocos/core/math/rect.ts
# cocos/core/scene-graph/scene-globals.jsb.ts
# cocos/native-binding/impl.ts
# cocos/scene-graph/node-dev.ts
# cocos/scene-graph/scene-globals.ts
# exports/sorting.ts
2023-03-10 13:36:45 +08:00
zhakesi
ada1792e71
fix tield layer hex contentSize wrong ( #13817 )
2023-01-12 13:59:56 +08:00
zhakesi
51f4ec77e6
fix tiled layer updateCulling ( #13891 )
2023-01-04 13:36:55 +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
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
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
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
zhakesi
c7761e5c19
middleware2d components rendering in native mode ( #12788 )
...
* middleware2d components rendering in native mode
* support spine/dragonbones set enable batch
* support spine rendering in batching mode
* get batcher2d instance from root
* process about with type conversion
* fix some code style
* use material hash to merge draw batch
* deal with fill z
* fix dragonbones fill z
* remove some code no used any more
* refactoring some code
* modify some code
* add free memory
* fix clang-tidy
* delete mesh-buffer-layout in destructor
* byte alignment
2022-09-20 13:31:33 +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
c5c7b987ea
move cocos/core/gfx to cocos/gfx ( #12559 )
...
* move cocos/core/gfx to cocos/gfx
2022-08-26 17:51:46 +08:00
zhakesi
58a720a1bf
fix tiled-tile ( #12377 )
2022-08-17 11:38:35 +08:00
zhakesi
aabe55eb8f
fix tiled-group set premultiplyAlpha ( #12309 )
...
* fix tiled-group set premultiplyAlpha
* fix access property blend factor
2022-08-04 10:31:27 +08:00
ChiaNing
f8fb03e9af
remove blend state on ui render ( #12228 )
...
* remove blend state on ui render
* tiledGourp updateBlendFunc hack
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com >
2022-07-29 11:54:28 +08:00
Santy-Wang
9c092e7b77
optimize code of batcher2D ( #12166 )
...
* optimize code of batcher2D
* fix bugs
* no lint
* no lint
* no lint
* fix ci
2022-07-25 15:56:40 +08:00
Santy-Wang
07facb9bf1
optimize memory ( #12157 )
2022-07-23 15:28:25 +08:00
zhakesi
e18e900162
support spine/dragonbones use local native batcher2d ( #12141 )
...
* support spine/dragonbones use local native batcher2d
* avoid tiled map use local
* render-entity add set use local
* modify some code
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-07-22 12:54:15 +08:00
zhakesi
eab5f52c92
fix tiledLayer addUserNode ( #12122 )
2022-07-21 15:47:52 +08:00
Zhang mingzhen
12625f09d8
RenderDrawInfo code sorting ( #12055 )
...
* remove blendHash and DrawInfoAttrLayout
* remove code in cpp
* remove blend hash in ts
* remove blendhash of middleware in ts
* remove rebundant code
* remove stencilStage in drawinfo
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2022-07-19 13:35:54 +08:00
zhakesi
51d999e0e6
native batcher2d tiled-map addUserNode complete ( #12059 )
2022-07-19 10:53:42 +08:00
zhakesi
096453b2ad
native batcher2d for tiled-map ( #12044 )
...
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-07-18 10:12:26 +08:00
zhakesi
8110169ad1
fix tmx load field in mini game platform ( #11819 )
2022-07-03 13:22:52 +08:00
biliskener
53d564b6ce
Solve the problem that the properties of the Object below the ObjectGroup in TiledMap are incorrectly mixed into the property list of the ObjectGroup. The function getElementsByTagName() searches for child nodes in a deep way. ( #9559 )
2022-06-20 15:29:40 +08:00
mmyduckx
df1594c8d8
Gameview editor macro ( #11568 )
...
* GameView related EDITOR macro modify
* remove debug code
* fix ci
* fix review
* fix review
2022-06-20 10:05:29 +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
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
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
zhakesi
146b74e4ef
fix api docs ( #10872 )
...
* fix api docs
* add internal mask
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-04-25 18:31:29 +08:00
Santy-Wang
e82cec17ac
update docs ( #10796 )
...
* update docs
* update docs more
* refine
* refine
2022-04-20 18:47:53 +08:00
zhakesi
3d93c22bf7
fix: set tmxAsset not apply file ( #10690 )
...
* fix: set tmxAsset not apply file
* fix code style
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-04-08 19:47:49 +08:00
PP
d749bbe1c4
remove legacyPublic tag ( #10702 )
2022-04-08 19:41:20 +08:00
minggo
be735449af
Revert "remove some deprecated api ( #10656 )" ( #10694 )
...
This reverts commit a1b1fc5a09 .
2022-04-08 11:51:06 +08:00
minggo
a1b1fc5a09
remove some deprecated api ( #10656 )
...
* remove some deprecated api
2022-04-07 16:31:02 +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
zhakesi
bac3bc99b3
fix sprite-frame size after repetitive dynamic creation of tiledmap ( #10535 )
...
* fix sprite-frame size after repetitive dynamic creation of tiledmap
* rename texture to sprite-frame
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-03-28 16:55:28 +08:00
zhakesi
5157fd2734
fix tiled show with pixel offset ( #10523 )
...
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-03-26 19:13:47 +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
pandamicro
1446db89e7
Merge branch 'v3.4.2' into v3.5.0
...
# Conflicts:
# cocos/2d/components/sprite.ts
# cocos/2d/framework/ui-transform.ts
# cocos/2d/renderer/render-uniform-buffer.ts
# cocos/core/builtin/effects.ts
# cocos/core/builtin/shader-sources/glsl1.ts
# cocos/core/builtin/shader-sources/glsl3.ts
# cocos/core/builtin/shader-sources/glsl4.ts
# cocos/dragon-bones/ArmatureDisplay.ts
# cocos/spine/skeleton.ts
# editor/assets/chunks/cc-sprite-fs-gpu.chunk
# editor/assets/chunks/cc-sprite-fs-gpu.chunk.meta
# editor/assets/chunks/cc-sprite-vs-gpu.chunk
# editor/assets/chunks/cc-sprite-vs-gpu.chunk.meta
# editor/assets/default_skybox.meta
# editor/assets/effects/builtin-sprite-gpu.effect.meta
2022-02-28 17:24:02 +08:00
pandamicro
2ba83f18a4
Ensure RenderData.clear won't break usability ( #10177 )
...
* Cleanup Renderable2D onDestroy and destroyRenderData
* Ensure RenderData.clear won't break usability
* Remove quad render data
* Fix Skeleton.destroyRenderData
* Small tweak
* Fix ci
* Add protection to buffer accessor size calculation
* Cleanup spine & dragonbones code
* Improve DragonBones draw list management
* Fix currRenderData state issue
2022-02-25 14:56:54 +08:00
zhakesi
c51684608e
fix getTiledTileAt cause layer show wrong. ( #10137 )
...
* fix getTiledTileAt cause layer show wrong.
* fix code style
2022-02-21 16:14:40 +08:00
zhakesi
9bf99c2977
fix releaseMapInfo error. ( #10062 )
...
* fix releaseMapInfo error.
* fix tiledmap releaseMapInfo
2022-02-09 15:36:27 +08:00
zhakesi
f4591341cb
fix tiledmap show wrong ( #10059 )
2022-01-27 17:12:58 +08:00
ChiaNing
8f87cbd483
useless UI_GPU code delete ( #10048 )
2022-01-25 19:14:41 +08:00