James Chen
1ff0f41b0c
[v3.8.6] Mark some properties as @dontmangle. ( #18160 )
2025-01-20 16:33:40 +08:00
James Chen
b0b7dfb953
[v3.8.6] Inline enums for CCObjectFlags. ( #18190 )
2025-01-17 11:44:07 +08:00
James Chen
cc2ff78078
[v3.8.6] Fix some type issues and warnings. ( #18147 )
...
* [v3.8.6] Fix some type issues and warnings.
* Continue to fix warnings in instantiate-jit.ts
2025-01-14 10:24:17 +08:00
minggo
d655c30984
preview scene in editor should also destroy object at the end of the same, or engine components may refer invalid nodes ( #18157 )
2025-01-13 17:38:01 +08:00
James Chen
515244bd87
[v3.8.6] Optimize code size by defining Constructor explicitly. ( #18119 )
...
* [v3.8.6] Optimize code size by defining Constructor explicitly.
2025-01-13 17:37:45 +08:00
James Chen
e400883bd4
[v3.8.6] Use array.forEach instead of for of to optimize code size ( #18112 )
2025-01-10 14:42:56 +08:00
James Chen
2230501562
[v3.8.6] Fix some type issues. ( #18145 )
2025-01-09 13:42:24 +08:00
James Chen
42384e20f1
385 revert $ ( #17912 )
...
* Remove dollar suffix for private property definition.
* (\._[a-z][a-zA-Z0-9]{3,})\$ to \1
* (protected _[a-z][a-zA-Z0-9]{3,})\$ and (public _[a-z][a-zA-Z0-9]{3,})\$ to \1
* ( _[a-z][a-zA-Z0-9]{3,})\$([^0-9]) to \1\2
* Remove $ suffix manually for gfx-webgl backend.
* (public [a-z][a-zA-Z0-9]{3,})\$ to \1
* (\.[a-z][a-zA-Z0-9]{3,})\$ to \1
* Remove mangle hack.
2024-11-25 13:47:56 +08:00
James Chen
f4ccf3a8bb
[v3.8.5] Support inline enum and mangle private variables to reduce engine size. ( #17703 )
2024-10-15 10:17:16 +08:00
Knox
53ac71d5ea
Improved min and max modifiers, support for func ( #17522 )
...
* Improved min and max modifiers, support for functio
* add min and max test
---------
Co-authored-by: cocos <cocos@cocosdeMacBook-Pro.local >
2024-08-14 11:09:31 +08:00
James Chen
32727868b0
Reduce the generated javascript code size ( #17491 )
2024-08-06 18:14:44 +08:00
WingStone
6f7c011942
typo fixed ( #17253 )
2024-07-19 16:40:12 +08:00
wang.hanbin
7c9776a6ff
modify the userdata type of IExposedAttributes ( #17160 )
2024-07-03 17:53:28 +08:00
minggo
4cd8d65b98
use its own destruct function ( #16622 )
2023-12-19 11:29:27 +08:00
PP
9daf2c663c
upgrade nodejs to 18.17.0 ( #15899 )
...
* upgrade nodejs to 18.17.0
fix compile-native-ts
fix type
fix eslint
fix node version on native-binding
test native ci
fix eslint
fix jest version
upgrade ts-jest
fix
reduce EXPECTED_CAPACITY
update ccbuidl
Revert "test native ci"
This reverts commit 795c8c68cf7ff7f2561db4414689ad3f6aa5c1f7.
# Conflicts:
# scripts/native-pack-tool/package-lock.json
* detect node version
# Conflicts:
# package.json
* use engine-strict option
* Update .nvmrc
* Update pal/input/web/accelerometer-input.ts
* fix conflict
* fix compile native ts
* download external in compile native ts
* fix
2023-08-28 15:52:24 +08:00
Leslie Leigh (李的序)
31342c4633
Update editable.ts ( #15820 )
2023-07-26 11:09:38 +08:00
PP
4c0f664960
[AOT] add type for AOT engine ( #15527 )
...
* fix object
* fix action
* fix type in instantiate.ts
* fix type for NodeEventProcessor
node_event_processor
* fix type in input.ts
* fix particle system
* fix color type
* fix CI
* add tracking issue
2023-06-28 11:24:40 +08:00
Leslie Leigh (李的序)
6b171d2be4
Uniform the way to set a property's type as enum ( #15440 )
...
* Uniform the way to set a property's type as enum
* Update
* Revert "Update"
* License
2023-06-15 11:17:47 +08:00
PP
b8a96f0080
fix type in debug.ts ( #15426 )
...
* fix type in debug.ts
2023-06-14 11:33:00 +08:00
PP
509d73b27d
merge branch v3.8.0-aot ( #15421 )
...
* PR1: add explicit function return type (#15311 )
* PR4: add explicit function return type (#15314 )
* [ci skip][AUTO]: Automated code generating update: 8843bfe54cd3f8e6f84432948716c8d130ecb233 (#15314 ) (#15357 )
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
* add function return type
* fix version checking
* fix return type
---------
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com >
Co-authored-by: cocos-robot <cocos-robot@cocos.com >
2023-06-13 18:08:45 +08:00
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