Commit Graph

288 Commits

Author SHA1 Message Date
timlyeee 999e640484 add callbacksInvoker missing api (#12131) 2022-07-22 13:31:21 +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
pandamicro 130a770cbd Cleanup imports (#11811) 2022-07-01 22:21:15 +08:00
PP 151eeb3dce deprecate exported x-deprecated interface (#11802)
* deprecate exported x-deprecated interface

* update

* update docs
2022-07-01 21:54:15 +08:00
PP 7f41b05cfe support top level deprecate check (#11630)
* support __checkObsolete__

update

update deprecate info

update

fix ci

fix ci

update

* rename interface

* cache namespace proxy

* move deprecate info to version deprecated

* consider undefined Proxy
2022-07-01 11:55:05 +08:00
王凯鹏 41c22d040a fix mounted prefab instance expanded twice (#11289)
* fix mouted prefab instance expanded twice

* fix properties override problem with correct prefab expand order
2022-06-20 10:07:37 +08:00
王凯鹏 1ba01029b3 fix nested prefab children id problem (#11452) 2022-06-10 17:51:03 +08:00
minggo f07d3f3bda Merge branch 'v3.5.1-ds' into v3.6.0_merge_v3.5.1-ds 2022-06-07 15:02:34 +08:00
minggo 77701a2d84 Merge branch 'v3.5.1' into v3.6.0-merge-v3.5.1 2022-05-27 15:23:33 +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
SijieWang bd8d118d29 [Bug] Prefab generates incorrect data(Repeated node) (#11211)
Co-authored-by: Sijie <devhacker520@hotmail.com>
2022-05-24 22:43:00 +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 8ef4d3c4a9 Fix API docs for 3d module and part of core module (#11126)
* Refactor morph and morph-rendering module

* Fix API docs for 3d module

* Fix some API docs for core module

* Tweaks and fixes of links
2022-05-19 14:19:05 +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
PP 085a86be6e fix eslint for js-typed.ts (#11080)
* fix eslint for js-typed.ts

* fix ci

* fix ci
2022-05-14 13:35:06 +08:00
James Chen 0200e65aae [JSB] Check whether node._children && node._children.length are valid in updateChildrenForDeserialize (#11012)
* [JSB] Check whether node._children && node._children.length are valid in updateChildrenForDeserialize

* [JSB] Optimize nodeProto._onBatchCreated, reduce the count of visiting properties.
2022-05-10 10:58:18 +08:00
timlyeee b2a660c463 update comment (#10961) 2022-05-06 17:43:14 +08:00
Leslie Leigh (李的序) 5fd18f942b Fix missed links (#10938) 2022-05-06 10:10:36 +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
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
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +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
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
zheng han d835b0bc99 fix prefabInstance creation under mounted children (#9804) 2021-12-13 15:32:09 +08:00
PP f5511f4c87 Revert "Revert "optimize interface in screen module (#9176)"" (#9490)
This reverts commit b88d4845cc.
2021-10-15 10:21:04 +08:00
pandamicro b88d4845cc Revert "optimize interface in screen module (#9176)"
This reverts commit 4735476945.
2021-10-14 23:07:23 +08:00
PP 4735476945 optimize interface in screen module (#9176)
* optimize interface in screen module

* remove DPR calculating

* update screen-adapter init

* set screen.resolutionScale as 1 by default

* remove pixelRatio getter in system-info

* remove sys.windowPixelRatio access

* optimize screen.windowSize

update

* convertToCocosScreenSpace

* change resolution-change to window-resize

* fix native UI

update

update UI

update UI

* optimize screen init

* fix subContextView

* fix root resize

* fix precision issue on Metal render end

* sys.windowPixelRatio

* use warnID

* remove screen.convertToCocosScreenSpace

* put private property and method together after public ones

* warnID

* fix landScape on CocosPlay

* fix DPR on vivo platform

* fix CI
2021-10-14 22:16:34 +08:00
zheng han 7c007a58de fix bug when mountedChild is a PrefabInstance (#9424) 2021-09-30 12:09:48 +08:00
zheng han 1314027128 expand nestedPrefab in PrefabAsset onLoad (#9205)
* load nestedPrefab in PrefabAsset onLoad

* use nestedInstanceNodes

* check to expand prefabInstance node

* rename

* fix ci

* useless import

* remove useless code

* change 'instnaceChildren' to 'nestedPrefabInstanceRoots'
2021-09-28 18:01:27 +08:00
GengineJS e36e5e8fee Fixed prefab incorrect in native location (#9293) 2021-09-07 14:51:45 +08:00
zheng han 78bf0a588a V3.3.0 fix mounted children (#8994)
* fix mountedChidren bug

* fix editorExtras serialize in prefabInstance
2021-07-18 17:20:58 +08:00
PP 5a4bed2379 support inputManager.frameDispatchEvents() in main loop (#8954)
* support pollEvent() API on pal/input

update

update pal

* support inputManager.frameDispatchEvents() in main loop

* remove event-manager module

* fix CI

* fix _glView

* fix CI

* fix director pause

* update for
2021-07-16 13:45:01 +08:00
PP d7067c29c8 deprecate interface in View module && support pal/screenManager (#8836)
* remove BrowserGetter

* deprecated view.adjustViewportMeta

* deprecate view.enableAutoFullScreen and view.isAutoFullScreenEnabled

* remove view._adjustSizeKeepCanvasSize

* remove view._convertMouseToLocation, view._convertTouchWidthScale and view._convertTouchesWithScale

* remove view._originalDesignResolutionSize

* deprecate cc.winSize and cc.visibleRect

update

* access local winSize

* access local visibleRect

* deprecate view.getVisibleOrigin view.getVisibleOriginInPixel

* Revert "deprecate view.getVisibleOrigin view.getVisibleOriginInPixel"

This reverts commit 1ae9e1d5c51d8c701eaa2e4a65cd4c17e5f6d971.

* Revert "deprecate cc.visibleRect"

* optimize screen module

update

* update

update

* optimize deprecation info

* rename pal/system to pal/systemInfo

* update pal/systemInfo access in engine layer

* support pal/screenManager

* update pal/screenManager access in engine layer

* fix bug

* optimize deprecation info

* fix auto fullscreen

* fix ci

* fix ci

* update change request

update

update

* fix CI
2021-07-09 18:57:03 +08:00
santy-wang c5dd05fbf1 Merge branch 'v3.1.2' of github.com:cocos-creator/engine into v3.3-merge 2021-06-28 14:40:34 +08:00
gameall3d 9846a18dfe fix mounted root 2021-06-21 13:55:02 +08:00
Yun Hsiao Wu d1d077c098 gfx: sRGB texture support (#8822) 2021-06-17 18:09:57 +08:00
PP 4914116834 optimize SystemEventType and NodeEventType (#8678)
* remove recomendation for usage of string type of event

* deprecate KEY_DOWN KEY_UP event

* support SystemEventType.KEYBOARD_DOWN && SystemEventType.KEYBOARD_UP

* deprecate some useless properties

* implement keyboard pal

* remove SystemEventType toString()

update

* fix instantiating EventTouch

* optimize deprecated info

* support native keyboard KEYBOARD_DOWN event

* remove usage of event code

* fix deprecating pure value properties

* optimize deprecating Event type

* optimize deprecating getEventCode()

update

* optimize deprecating eventType

* optimize deprecating isPressed

* optimize deprecating keybaord event

* optimize deprecating rawEvent

* Revert "fix deprecating pure value properties"

This reverts commit 60d586532496fa1f422f05c54a922b86d1dc96ee.

* fix deprecate pure value properties

* Revert "fix deprecate pure value properties"

This reverts commit a83f1725fedfbd7af445892912aacab8e8502147.

* fix deprecating pure value property

* update

updaate

* deprecate some EventType enum in SystemEventType and NodeEventType

* optimize

* update

update

* update

* update

* fix CI

* fix CI

* fix Circular dependency

* fix Circular dependency
2021-06-07 19:06:29 +08:00
PP 7ed0e73a84 remove deprecate warning in engine (#8482)
* remove deprecated BrowserType usage

* remove deprecated OS usage

update

* remove deprecated Platform usage

* fix esLint
2021-04-19 14:14:51 +08:00
ChiaNing b89c07f2ef UITransform priority change (#8435)
* UITransform priority change

* better version

* update

* name change

* name change
2021-04-15 13:38:35 +08:00
zheng han ad276d99e8 V3.1 prefab nested apply (#8412)
* add or remove component in prefabInstance

* fix type

* app mounted children

* remove editorOnly import

* remove _mountedRoot here and let editor polyfill it~
2021-04-12 15:46:20 +08:00
zheng han 09ae664126 add more null check for targetOverride (#8360) 2021-03-17 10:35:34 +08:00
jiaxin.lai 194525e838 fix markAsWarning of deprecated (#8362) 2021-03-17 10:30:47 +08:00