minggo
3046336575
revert Node setter behavior as v3.8.3 ( #17754 )
...
* revert Node setter behavior as v3.8.3
* update snap file
2024-10-22 09:32:20 +08:00
James Chen
11f3bef63a
fixed #17606 : node.setWorldScale(0, 0, 0) causes NaN issue in scale and worldMatrix properties ( #17607 )
2024-09-13 17:06:41 +08:00
minggo
1ad692caa5
remove wrong commennt ( #17610 )
2024-09-06 15:13:09 +08:00
minggo
e7f8a9c4ac
return correct angle ( #17219 )
...
* return correct angle
* fix native implementation
* add test case
2024-06-25 16:22:58 +08:00
minggo
7b2ffc9eda
fix logic error of set world rotation/position/scale ( #17079 )
...
* fix logic error of set world rotation/position/scale
2024-06-03 09:51:35 +08:00
minggo
e7620a32e4
use array pool instead of shared array ( #16988 )
...
* use array pool instead of shared array
shared array will have problem if dispatching and event in a event call back function and the event type is propagationStopped
2024-05-21 13:36:19 +08:00
minggo
6a04c0cea0
Some setter improve ( #16959 )
...
* only update position when the value is changed
* update rotation as needed
2024-05-10 10:19:32 +08:00
minggo
28784be4b3
only update scale when the value is changed ( #16956 )
2024-05-08 18:53:03 +08:00
Santy-Wang
d3a9b5a8b8
gradient misc optimization and add some helpful function ( #15032 )
...
* gradient misc optimization and add some helpful function
* keep old version and add new interface
* missing .
* mark as engineInternal
2023-05-24 13:59: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
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
Santy-Wang
5ae9dd67ce
fix addPersistNode ( #11689 )
2022-06-24 11:25:41 +08:00
Santy-Wang
8ca3044cdf
set persist node's hideFlags to DontSave when switch scene ( #11627 )
...
* set persist node's hideFlags to DontSave when switch scene
* refine log
2022-06-20 23:18:41 +08:00
Santy-Wang
e87910e851
support get component with abstract class ( #11561 )
2022-06-16 20:28:55 +08:00
Santy-Wang
f17ab5d950
cherry-pick ds branch ( #11219 )
...
* uniquify uuid of comp and node in prefab
* support component add/remove event
* use option to control id serialization
2022-05-25 18:43:25 +08:00
Santy-Wang
98e52e3f16
output warning info when attached to the node has zero scaling ( #10524 )
...
* output warning info when attached to the node has zero scaling
* use approx instead
2022-03-26 22:23:29 +08:00
santy-wang
995f5b2d41
Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge
2022-01-24 15:56:49 +08:00
pandamicro
bd3c30fd4c
BufferAccessor refactor for Batcher2D ( #9802 )
...
* VB cache add(only simple)
* sliced add
* after rebase
* Extract BufferAccessor from MeshBuffer
* Refactor for linear buffer accessor
* Support simple sprite
* Fix initialization issues
* Fix simple sprite rendering
* Rough adaptation
* tweaks
* Fix LinearBufferAccessor's appendBuffers
* Cleanup mesh buffer codes
* Reorganize ia allocation
* Middleware adaptation & Particle 2d adaptation (#31 )
* Middleware adaptation
* particle-2d adaptation
* Initial implementation of static vb accessor
* Complete static vb accessor
* Improve static vb accessor
* Ensure MeshBuffer.byteOffset
* Fix record batch process in static vb accessor
* Fix vb reset
* simple & simple label add (#32 )
* Meshbuffer static length (#33 )
* set ib only first time
* Meshbuffer static length
* Some name refactor
* remove RenderData.vData
* Improve buffer update logics
* Use appendIndices in fillBuffers
* The quickest version(simple & label can render) (#34 )
* Revert "Use appendIndices in fillBuffers"
This reverts commit 0600e26f7eee277c820c3097b1f48f79fcf60890.
* the quickest version
* pass renderScene
* batch
* change batcher update
Co-authored-by: pandamicro <lphuabin@gmail.com >
* Move ia record logic from accessor to batcher
* Make vertexFormat sourced from render data
* sliced & bar-filled (#35 )
* radial-filled & tiled & label (#36 )
* radial-filled & tiled
* bmfont & char label
* function change
* name change
* Remove uvDirty
fixes
Fix uv update for sprite
* Reduce mesh buffer setDirty
* uv fix
* Format label
* Refactor color and cascade opacity mechanism
* Fix empty render data or chunk absent issue
* fix some uv (#37 )
* Fix non stop allocation issue in static vb accessor
* fix bmfont richText & remove uiComponent (#38 )
* fix bmfont uv
* fix richText & remove ui Component
* Fix mesh render data batching
* Small fix
* Update for spine
* Formatting jsb spine and editor
* middle ware & particle 2d (#39 )
* motion-streak
* dragon Bones add
* tiled map unsafe change
* particle-2d add
* function name change
* some function change (#40 )
* Fix RenderData pool usage
* Fix merge issue
* fix misc bug (#41 )
* Native adaptation for spine and dragonbones with MeshRenderData
* misc fix (#42 )
* Improvements
* Fix ci and improvements
Co-authored-by: ChiaNing <sun.cloud.mo@gmail.com >
2022-01-07 15:43:04 +08:00
santy-wang
d3d84673d3
Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0
2021-12-10 19:20:01 +08:00
ChiaNing
99bdb07378
Revert "mesh buffer cache add ( #9728 )"
...
This reverts commit 1c0db6414a .
2021-12-03 19:46:09 +08:00
santy-wang
01ceef90c1
Merge branch 'v3.4.0' of github.com:cocos-creator/engine into v3.5.0
2021-12-03 00:08:06 +08:00
ChiaNing
1c0db6414a
mesh buffer cache add ( #9728 )
...
* UI MeshBuffer Cache add
* support hierarchy changed event
* notify upper
* use Dirty by Hierarchy Changed
* PR fix
* Fix CI
* fix CI
* support hierarchy changed event & function name change
* function name change
* comment add
* type change
Co-authored-by: santy-wang <wh19930829@qq.com >
2021-11-25 21:25:16 +08:00
santy-wang
6cde877e5b
Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0
2021-11-24 14:23:21 +08:00
zhakesi
fed044e8fb
optimize opacity update ( #9679 )
...
* optimize opacity update
* remove _cacheAlpha
* modify code style
* Update cocos/core/scene-graph/node-ui-properties.ts
* Update cocos/core/scene-graph/node-ui-properties.ts
* 1. supplement unit test case
2. supplement default dirty parameter
(cherry picked from commit 7e62d265ffbc8566e92bfcc10c1f9eb68e081487)
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-11-19 17:35:19 +08:00
Zhang mingzhen
9f77edb1f7
Add a method "getCompletePath()" to print complete path in hierarchy ( #9536 )
...
* Bump tmpl from 1.0.4 to 1.0.5 (#9357 )
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases )
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5 )
---
updated-dependencies:
- dependency-name: tmpl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add a method "getCompletePath()" to print complete path in hierarchy#9203
(cherry picked from commit 9acba34514f43730494b548a7e9c22bf21a6d555)
* delete "getCompletePath()" in "BaseNode" and "Scene"
* Revert "Bump tmpl from 1.0.4 to 1.0.5 (#9357 )"
This reverts commit 33375839a6 .
* Optimize method name and supplement the annotations #9203
* optimize annotations
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-10-30 18:12:24 +08:00
Zhang mingzhen
f6edc13da7
set active false if param is undefined or null ( #9571 )
...
* set active false if param is undefined #9397
* add condition that param is null and the unit test #9397
* ignore grammar error
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-10-30 15:23:21 +08:00
Santy-Wang
e8cf9a0ada
export active-in-hierarchy-changed event ( #9369 )
2021-09-23 14:22:18 +08:00
zhakesi
d120ba3ace
fix:root node scene has no rts info. ( #9167 )
...
* fix:root node scene has no rts info.
* add lpos lrot lscale attributes for scene
2021-08-19 15:17:33 +08:00