Commit Graph

289 Commits

Author SHA1 Message Date
Santy-Wang 4a2112ebba fix V3.8.0 performance unexpected downgrade (#15392)
* fix performance downgrade

* changed to EDITOR_NOT_IN_PREVIEW

* Update object.ts

---------

Co-authored-by: Jare Guo <jareguo@users.noreply.github.com>
2023-06-08 23:09:04 +08:00
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
Santy-Wang 51afef29b4 remove repliated and client load (#13521) 2023-05-25 11:40:41 +08:00
Gin 89b5744c05 feat: new property decorator radioGroup & improve properties rendering (#14600)
* feat: new property decorator `radioGroup`

- For enum type data, it provides the ability to control the ui component(select, button, checkbox) used in inspector
- https://github.com/cocos/3d-tasks/issues/8715

* update: rendering of align properties in label

- use `ui-radio-group` and `ui-radio-button` instead of `ui-tab`
2023-05-23 14:21:52 +08:00
Leslie Leigh (李的序) 06f382db95 Fix @property(PrimitiveType) (#14781) 2023-04-17 15:35:53 +08:00
PP e01ac3ee05 add tracking issue for TODO item (#14638)
* issue 14637

* issue 14640: animation module

* issue 14642: serialize deserialize hack

* issue 7519: pal/image

* issue 14643: dynamic inject

* mark as NOTE

* issue 14644: native only

* issue 7512: pal/fs
2023-03-23 16:42:46 +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
pandamicro 89a7f644cf Merge branch 'v3.7.2' into develop
# Conflicts:
#	cocos/core/global-exports.ts
#	cocos/core/math/quat.ts
#	native/cocos/cocos-version.h
#	package.json
2023-02-13 18:00:41 +08:00
江战 43dcb77052 core/data Fix spelling with Grammarly (#14103) 2023-02-09 09:32:13 +08:00
Leslie Leigh (李的序) 3f0d20f9da Add lint rule @typescript-eslint/consistent-type-assertions (#14110) 2023-01-31 15:56:40 +08:00
PP 3a9d9a547f fix: decorated property without default value (#14016)
* fix: decorated property without default value

* update

* update

* update  test

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* Update tests/core/decorator.test.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* close warning

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>
2023-01-06 18:47:53 +08:00
bofeng-song e6277b9911 fix name can not be reset after node is destroyed (#13908)
* fix property can not be reset normally
2022-12-28 13:56:25 +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
PP e9b958a125 feat: support userData attribute (#13857) 2022-12-20 16:15:48 +08:00
James Chen eaa9142b72 Fix missing default values for properties of native classes. (#13642)
* Fix missing default values for properties of native classes.

* Revert setDefaultValue in property.ts , should not return when JSB is enabled.

* Use SetAccessorProperty instead of SetAccessor to bind JS getter & setter.

https://stackoverflow.com/questions/57686545/setaccessor-and-setaccessorproperty-any-difference

* [JSB] Add 'name' property for Node prototype.

* Check whether Root is null in Scene's constructor since editor may new a scene object before Root is created.
2022-12-05 10:08:55 +08:00
PP d78f7173dd fix: engineInternal symbol lost (#13392)
* optimize: js.js deprecate info

* fix: engineInternal type culling for DeserializationContext

* fix: jsbUtils exporting

* update build-engine deps

* build-engine use privateJsDocTag

* publish build-engine 4.4.1-alpha.7

* update deps

* publish and update deps for build-engien 4.4.1-alpha.8

* remove engineInternal for LODModelsCachedUtils

* mark EditorExtendable as engineInternal

* mark serializable as engineInternal

* publish build-engine alpha.9 && update deps

* Revert "fix: jsbUtils exporting"

This reverts commit 297a32c155d6ad30ca21c6af76bf7fc16c87364f.

* publish & update deps
2022-11-22 16:56:18 +08:00
PP 6a8180dc97 optimize engine decorator (#13248)
* feat: support field decorator optimization

* publish 4.4.1-alpha.3

* update decorator signature

* update deps

* update third argument

* support culling editor decorators

* update deps

* make optimize decorators configable

* add unit test

* remove optimize-decorators.ts
2022-11-14 10:22:56 +08:00
minggo 6cda11d9c9 fix some core module (#13314)
* fix some core module
- move all engine internal exports to core/internal-index.ts except geometry, as geometry should be exported as a whole module
- exports algorithm in algorithm/index.ts
2022-11-11 11:34:13 +08:00
PP 3bd1bbd346 fix: editor npm install (#13262) 2022-11-07 20:35:11 +08:00
minggo 1ce742fbee import js from core instead of using js.js (#13261)
js.js is deprecated
2022-11-07 18:15:06 +08:00
minggo 7294de16f6 Adjust core import (#13230)
* fix import style of core module
* fix decorator usage
2022-11-07 15:01:31 +08:00
minggo 5334b73a7d fix missing exports (#13212) 2022-11-02 11:16:40 +08:00
minggo 2e29bce9c3 Adjust serialization (#13201)
* move serialization related file into cocos/serialization
2022-11-01 17:10:12 +08:00
minggo ef1635d267 move prefab related classes into scene-graph (#13156) 2022-10-27 11:30:34 +08:00
李吉林 a9d4e13f85 Light probe merge (#13093)
* add light probe
2022-10-19 22:34:21 +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 7bbad4a0a4 Merge branch 'develop' of github.com:cocos-creator/engine into v3.6.1-sync 2022-09-14 11:47:58 +08:00
黄森斌 43a91b1099 [Optimize] tooltip i18n data add extension prefix name (#12741)
* tooltip add extension prefix name

* test case
2022-09-14 10:16:47 +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
mmyduckx 2ea6e9b148 Remove base node related logics (#11977) 2022-08-23 17:34:36 +08:00
Santy-Wang f3fbfeb3b1 fix particle-system deserialization (#12220) 2022-07-29 11:54:49 +08:00
SijieWang 84ef0193c6 [Optimize] Optimizing 'GCObject' call performance (#12208)
* [Optimize] Optimizing 'GCObject' call performance

* Update cocos/core/data/garbage-collection.ts

* Update cocos/core/data/garbage-collection.ts

* Update cocos/core/data/garbage-collection.ts
2022-07-26 19:59:00 +08:00
SijieWang 0822ab1045 [Optimize] export CCClass.isCCClassOrFastDefined (#12043) 2022-07-18 10:34:45 +08:00
黄森斌 67e9aa1f33 V3.6.0 allow multiple custom scripts exist in project with one same className (#11763)
* use getClassById instead of _getClassById

* use getClassId instead of _getClassId

* public cc.js.getClassId api

* allow className already exists, new one will replace old classObject

* create component use cid

* allow className exist when registing

* custom script className allow duplicated

* revert some comments

* preserve api and deprecate _getClassById and _getClassId

* revert some comments

* revert comment

* Update cocos/core/utils/js-typed.ts

Co-authored-by: PP <chinese1236@qq.com>

Co-authored-by: PP <chinese1236@qq.com>
2022-07-05 15:19:56 +08:00
SijieWang bba02a6983 [Bug] fix assignAssetsBy bug (#11768)
* [Bug] fix assignAssetsBy bug

* review code
2022-07-04 15:25:37 +08:00
bofeng-song c5f1fff740 fix component can not be removed, it`ll cause native object can not be released (#11809) 2022-07-04 15:25:15 +08:00
Jare Guo b56376eed9 Slim CCClass: Clean some ES5 class implements (#11051)
* Slim CCClass: Remove deferred properties initializer. Simplify __ctors__ value.

* Slim CCClass: Remove unused mixins support

* update comment
2022-06-20 15:20:43 +08:00
SijieWang f1fa31bace [Optimize] Deserialization passes more parameters (#11573) 2022-06-20 15:09:16 +08:00
Santy-Wang 0a671558cc fix build-effect failed (#11537) 2022-06-16 14:58:51 +08:00
minggo ca9deefcf8 Fast define (#11391)
Use fast define to replace decorator codes.

Co-authored-by: santy-wang <wh19930829@qq.com>
2022-06-14 17:36:46 +08:00
Santy-Wang e9e89fc5c3 fix build-effect error (#11496) 2022-06-14 16:35:38 +08:00
PP 1c737b91fd optimize Constants in engine (#11464)
* publish build-engine 4.3.5

* update build-engine deps

* remove default-constants.ts

ds

remove de

* delete consts.d.ts

* support build-const workflow

* remove EXPORT_TO_GLOBAL

* update comment

* fix interface-check

* update comment
2022-06-14 16:14:34 +08:00
pandamicro 8864f2f4c7 Merge remote-tracking branch 'cocos-for-editor/v3.5.2' into merge3.5
# Conflicts:
#	cocos/core/components/renderer.ts
#	cocos/core/global-exports.ts
#	cocos/core/renderer/core/render-scene.ts
#	cocos/core/renderer/core/render-window.ts
#	cocos/core/renderer/scene/index.ts
#	cocos/core/root.ts
#	cocos/core/scene-graph/scene-globals.ts
#	package.json
2022-06-09 15:20:30 +08:00
Santy-Wang 86f4361974 fix memory issue in editor (#11355)
* fix memory issue in editor

* fix lint

* refine

* bump version

* refine
2022-06-06 10:18:34 +08:00
pandamicro ec58a77ff0 Fix more API docs in core (#11338)
* Fix more API docs in core

* Update version

* tweaks
2022-06-02 21:03:17 +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
James Chen 7203b63a50 fixed #3d-tasks/11110: [native] Avoid two implementation of CCObject (#11060)
* fixed #3d-tasks/11110: [native] Avoid two implementation of CCObject
* Add more comments in CCObject.cpp
2022-05-16 09:49:45 +08:00
Jare Guo 92bb384dda Instantiate all FastDefined objects as value type (#11052)
* Instantiate FastDefined object as value type

* Optimize #11052

* Doc

* minor tweak

Co-authored-by: Leslie Leigh <leslieleigh@outlook.com>
2022-05-14 14:30:47 +08:00