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
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
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
minggo
2e29bce9c3
Adjust serialization ( #13201 )
...
* move serialization related file into cocos/serialization
2022-11-01 17:10:12 +08:00
mmyduckx
2ea6e9b148
Remove base node related logics ( #11977 )
2022-08-23 17:34:36 +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
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
mmyduckx
8c76a64e8a
fix tween-action related change scene crash ( #11036 )
...
* fix tween-action related change scene crash
* add isCCObject helper funciton
2022-05-12 18:25:00 +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
Santy-Wang
8601de5de0
adjust api docs ( #10871 )
...
* adjust api docs
* refine
* add english doc
2022-04-26 19:14:47 +08:00
minggo
84c27e7f71
Merge branch 'v3.5.0' into v3.6.0_merge_v3.5
2022-04-24 13:41:27 +08:00
PP
d749bbe1c4
remove legacyPublic tag ( #10702 )
2022-04-08 19:41:20 +08:00
zheng han
bd4db672cb
V3.6.0 scene view native ( #10044 )
...
* 1. export pipeline in native
2. remove some editor useless code
* Add Editor Camera native data synchronization
* fix crash: native model is destroyed but not removed from renderscene (#9543 )
Co-authored-by: lijilin <jilin.li@cocos.com >
(cherry picked from commit 3d1ac52a26 )
* refactor preview code
* fix model preview function
* fix deserialize bug
* fix JSB error
* change default value of HTML5
* fix jsb.CCObject problem
* fix ts error
* Fix eslint in misc
Co-authored-by: zhengxiangkui <476393671@qq.com >
Co-authored-by: 李吉林 <798080536@qq.com >
Co-authored-by: pandamicro <lphuabin@gmail.com >
2022-01-28 16:53:49 +08:00
minggo
e80251eae6
Codes for native ( #9920 )
2022-01-11 17:30:18 +08:00
PP
fbde8d1e90
use lagacyPublic to marked deprecated public interface ( #9859 )
...
* use lagacy-public
* publish beta6
* remove jsDoc tag from constructor
* use legacyPublic
* publish beta 7
2021-12-28 11:48:10 +08:00
PP
cc01fad918
support internal interface filter ( #9797 )
...
* support interface filter
* publish build-engine@4.2.20-beta.1
* update
* fix other type of statement
* publish @cocos/build-engine 4.2.20
* update lock
* remove `@internal` from constructor documentation
* change to internal_cc tag
* support target tag in interface-filter
* publish 4.2.21-beta.1
* remove `@private_cc` tag
* remove public internal interface
* remove public internal getter setter
* remove public declare internal property
* update
* remove `__editorExtrasTag__`
* remove public internal interface on `js`
* pulish @cocos/build-engine 4.2.21-beta.2
* change tag to `@deprecated_to_user`
* support `@deprecated_to_user`
* publish 4.2.21-beta.3
* finish change request
* change to marked_as_engine_private
* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
ChiaNing
47c6c3e5a6
fix 3.4 Node perfromance bug ( #9521 )
2021-10-22 11:35:48 +08:00
pandamicro
0b7d570353
Add allowReplicated decorator ( #9341 )
...
* Add AllowReplicated decorator
* Fix allowReplicated decorator
* Fix ci
* Fix ci
* Update version
* Update version
2021-09-17 18:43:12 +08:00
pandamicro
37671f8063
Fix IsClientLoad missing ( #9175 )
2021-08-13 15:25:02 +08:00
pandamicro
9849fdd1f4
Add some object flags ( #8987 )
...
* Support number key in EventTarget
* Add replicated and clientLoad
* Update main license
* Fix ci
* Fix ci
* Fix ci
* Fix ci
* Move object getter setter to functional style API
* Adjust
* Add SERVER_MODE constant
2021-07-15 19:41:08 +08:00
Leslie Leigh (李的序)
34942a1894
Add editor extendable ( #8778 )
...
* Add editor extendable
* Update signature
* Doc
2021-06-07 19:58:23 +08:00
zheng han
4ce1bc896e
add editorExtras to CCObject ( #8766 )
2021-06-04 16:58:42 +08:00
troublemaker52025
08ae25a974
[ v3.3 ] add getter & setter for CCObject._objFlags ( #8630 )
...
* add getter & setter for CCObject._objFlags
* update
2021-05-11 10:46:47 +08:00
troublemaker52025
05a72cdee1
Delete private node for v3.1 ( #8382 )
...
* delete private node
# Conflicts:
# cocos/core/scene-graph/private-node.ts
* update
* Alias of Node
* update
* dont use enum ALL
* fix bug for editor
* update
* update
* update
* Retaining deprecated objects
* update
* update
* update
* using warnID and update EngineErrorMap.md
2021-04-08 17:47:05 +08:00
Leslie Leigh (李的序)
9bd9baac12
Eslint autofix all ( #8108 )
...
* Eslint autofix all
* Manual fix
2021-01-09 11:41:10 +08:00
Yun Hsiao Wu
32598c25cb
switch to eslint ( #7727 )
...
* switch to eslint
* eslint: extends airbnb
2020-11-09 10:19:12 +08:00
Jare Guo
b7c56393d5
Merge remote-tracking branch 'fireball/3d' into 3d-v1.2
...
# Conflicts:
# EngineErrorMap.md
# cocos/core/assets/image-asset.ts
# cocos/core/data/class.ts
# cocos/core/data/deserialize.ts
# package.json
2020-10-28 18:37:39 +08:00
pandamicro
6101d772a2
Merge remote-tracking branch 'origin/3d-v1.2' into 3d
...
# Conflicts:
# EngineErrorMap.md
# cocos/core/3d/builtin/effects.ts
# cocos/core/data/decorators/property.ts
# cocos/core/pipeline/forward/forward-pipeline.ts
# cocos/core/pipeline/forward/scene-culling.ts
# cocos/core/renderer/scene/model.ts
# cocos/core/renderer/scene/shadows.ts
# cocos/core/renderer/ui/mesh-buffer.ts
# cocos/core/renderer/ui/ui-vertex-format.ts
# cocos/core/scene-graph/scene-globals.ts
# cocos/terrain/terrain.ts
# cocos/ui/assembler/graphics/webgl/graphics-assembler.ts
# cocos/ui/components/graphics.ts
# editor/assets/default_prefab/3d/Capsule.prefab.meta
# editor/assets/default_prefab/3d/Cone.prefab.meta
# editor/assets/default_prefab/3d/Cube.prefab.meta
# editor/assets/default_prefab/3d/Cylinder.prefab.meta
# editor/assets/default_prefab/3d/Plane.prefab.meta
# editor/assets/default_prefab/3d/Quad.prefab.meta
# editor/assets/default_prefab/3d/Sphere.prefab.meta
# editor/assets/default_prefab/3d/Torus.prefab.meta
# editor/assets/default_prefab/Camera.prefab.meta
# editor/assets/default_prefab/Terrain.prefab.meta
# editor/assets/default_prefab/effects/Particle System.prefab.meta
# editor/assets/default_prefab/light/Directional Light.prefab.meta
# editor/assets/default_prefab/light/Sphere Light.prefab.meta
# editor/assets/default_prefab/light/Spot Light.prefab.meta
# editor/assets/default_prefab/ui/Button.prefab.meta
# editor/assets/default_prefab/ui/Canvas.prefab.meta
# editor/assets/default_prefab/ui/EditBox.prefab.meta
# editor/assets/default_prefab/ui/Label.prefab.meta
# editor/assets/default_prefab/ui/Layout.prefab.meta
# editor/assets/default_prefab/ui/Mask.prefab.meta
# editor/assets/default_prefab/ui/ProgressBar.prefab.meta
# editor/assets/default_prefab/ui/ScrollView.prefab.meta
# editor/assets/default_prefab/ui/Slider.prefab.meta
# editor/assets/default_prefab/ui/Sprite.prefab.meta
# editor/assets/default_prefab/ui/Toggle.prefab.meta
# editor/assets/default_prefab/ui/ToggleContainer.prefab.meta
# editor/assets/default_prefab/ui/Widget.prefab.meta
2020-10-21 18:35:11 +08:00
Jare Guo
0319477911
fix decorator warning of ValueTypes ( #7553 )
...
* fix decorator warning of ValueTypes (sync #6285 )
* refresh copyright
2020-10-21 16:31:41 +08:00
Jare Guo
a0a992de5d
remove asserts from addChild & sync 2D changes ( #7479 )
...
* remove asserts from addChild
* expose js._registeredClassIds & js._registeredClassNames (sync #3174 )
To unload scripts dynamically.
Also revert part of changes from https://github.com/cocos-creator/engine/pull/3204/files#diff-cabe5229c3c6e31339220008e54fe853L421
* remove unused code (sync #3174 )
* minor tweak (sync #3421 )
* should not invoke component if destroy() called before node activating (sync #3430 )
* node should removed and destroyed with scene (sync #3456 #3483 )
* fix WebGL detection on Android browsers (sync #3510 )
* remove redundant right shift for bitwise operation (sync #3754 )
* fix label blur when using dark font color (sync #3949 )
* refine tooltip of Block Input Event (sync #4053 )
* fix IE/Edge exception when output log/warn before engine initialization(sync #4447 , #4500 )
* sync class, attribute (#4689 , #4712 , #4781 , #4712 )
* fix loading unknown texture format (sync #4820 )
* prefer toLowerCase to toLocaleLowerCase + sync #5114
* optimize bezier calculation (sync #5155 )
* fix potential memory leak in scene-editor (sync #5643 )
* fix _posDirty error of Mask on native platform (sync #6168 )
2020-10-15 17:28:14 +08:00
ChiaNing
15a1806d18
API doc format change ( #7456 )
2020-09-28 16:52:52 +08:00
Jare Guo
6a2cdf7e66
export declarations for editor
2020-09-27 19:25:00 +08:00
pandamicro
3240dba206
Component rename for new standard and 2d compatibility ( #7103 )
...
* Rename ui related components
* Rename files
* Remove Useless errors
* Fix sealed names
* Fix sealed global variables
* Fix circular reference
* Refactor more component names
* Rename particle and animation related component
* export scene and models sub module in renderer
* Rename ModelComponents to Model
* Refactor LightComponents to Light
* Refactor CameraComponent to Camera
* Refactor ConstraintComponents to Constraint and rename physics comps
* Cleanup and fix issues
* Small fixes
* Refactor Model to MeshRenderer
* Final touch
* Fix data class export
* Better deprecation to cover all old usage
* Simpler and better deprecation with js.setClassAlias
* Fix ci
* Fix editor issue
2020-09-02 15:31:49 +08:00
Leslie Leigh (李的序)
bc5b531191
Add decorator @editable @serializable ( #7178 )
2020-09-02 11:44:12 +08:00
SB
f0882d6272
Optimize some documents
2020-08-06 17:23:06 +08:00
GengineJS
72f14dc806
[Feature] Adding isPlaying judgement to support the function of gameview ( #6990 )
...
* [Modify] the systemevent adds the function of isplaying judgment
* [Feature] the ui adds the function of isplaying judgment
* [Modify] Add GameView environment
* [Optimize] Optimize the gameView conditions
* [Optimize] Complement the gameView environment
2020-07-21 17:36:07 +08:00
Leslie Leigh (李的序)
2d21364587
Throw the error instead of return null in instantiate and addComponent ( #6940 )
...
* Throw the error instead of return null in instantiate and addComponent
* Update
2020-07-10 15:03:11 +08:00
pandamicro
b2830f5271
Merge remote-tracking branch 'origin/3d-v1.1.1' into 3d
...
# Conflicts:
# cocos/core/3d/builtin/effects.ts
# cocos/core/3d/framework/light-component.ts
# cocos/core/3d/framework/model-component.ts
# cocos/core/animation/animation-state.ts
# cocos/core/assets/image-asset.ts
# cocos/core/data/object.ts
# cocos/core/event/callbacks-invoker.ts
# cocos/core/game.ts
# cocos/core/gfx/webgl/webgl-commands.ts
# cocos/core/gfx/webgl2/webgl2-commands.ts
# cocos/core/pipeline/define.ts
# cocos/core/platform/event-manager/events.ts
# cocos/core/primitive/primitive.ts
# cocos/core/renderer/scene/model.ts
# cocos/core/renderer/scene/render-scene.ts
# cocos/core/root.ts
# cocos/core/scene-graph/node-event-processor.ts
# cocos/core/splash-screen-webgl.ts
# cocos/particle/index.ts
# cocos/terrain/terrain.ts
# exports/base.ts
2020-06-17 14:47:36 +08:00
pandamicro
845fc81fce
Improve CallbacksInvoker to remove __eventTargets mechanism ( #6837 )
...
* Improve CallbacksInvoker to remove __eventTargets mechanism
* Fix return value in Eventify.once
* Use isValid to check callback target validity
* Ensure event processor destroy during node destroy
* Fix node once can't remove touch/mouse listeners issue
* Strict check to include TO_DESTROY and DESTROYED state
* Remove execute and invoke directly in emit
* Fix ci
2020-06-09 11:23:20 +08:00
SijieWang
a9f3969245
Merge remote-tracking branch 'cocos-for-editor/3d-v1.1.1' into 3d
...
# Conflicts:
# cocos/audio/assets/clip.ts
# cocos/core/3d/builtin/effects.ts
# cocos/core/3d/framework/batched-skinning-model-component.ts
# cocos/core/3d/framework/editor-camera-component.ts
# cocos/core/3d/framework/index.ts
# cocos/core/3d/framework/model-component.ts
# cocos/core/animation/animation-clip.ts
# cocos/core/animation/animation-manager.ts
# cocos/core/animation/animation-state.ts
# cocos/core/animation/skeletal-animation-component.ts
# cocos/core/animation/skeletal-animation-state.ts
# cocos/core/assets/mesh.ts
# cocos/core/assets/simple-texture.ts
# cocos/core/assets/sprite-frame.ts
# cocos/core/assets/texture-base.ts
# cocos/core/data/class-decorator.ts
# cocos/core/data/instantiate.ts
# cocos/core/event/event-target.ts
# cocos/core/game.ts
# cocos/core/load-pipeline/CCLoader.ts
# cocos/core/load-pipeline/plist-parser.ts
# cocos/core/load-pipeline/unpackers.ts
# cocos/core/load-pipeline/url.ts
# cocos/core/math/deprecated.ts
# cocos/core/renderer/scene/model.ts
# cocos/core/scene-graph/base-node.ts
# cocos/core/scene-graph/scene-globals.ts
# cocos/terrain/terrain.ts
# predefine.ts
2020-06-03 13:25:42 +08:00
pandamicro
a5c238dabb
API translations in core ( #6726 )
...
* Add API translation for load pipeline
* Add API translation for core/data
* Fix decorator declarations
* API translation for scene graph
* Fix ci
* Fix ci
* Improve Eventify for event emit performance
* Fix ci
* improve format
2020-05-25 15:26:02 +08:00
Leslie Leigh (李的序)
5e2adea787
Rename internal usages of global variable 'cc' into 'legacyGlobalExpo… ( #6680 )
...
* Rename internal usages of global variable 'cc' into 'legacyGlobalExports'
* Fix CI
* Rename 'legacyGlobalExports' -> 'legacyCC'
2020-05-14 15:46:45 +08:00
Leslie Leigh (李的序)
284aa38d25
Build time constants ( #6256 )
...
* consts
* Bump @cocos/build-engine version
* Fix
* Upload @cocos/build-engine
* Rm scripts/build-engine/.gitignore
2020-03-11 14:05:22 +08:00