Commit Graph

204 Commits

Author SHA1 Message Date
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
PP c28ee043ef fix API docs (#12423)
* fix model API docs

* fix vfmtPosUvColor API docs

* update RenderWindow docs style
2022-08-17 16:56:55 +08:00
ChiaNing 491ff3061c model renderer priority bug (#12347)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-08-05 14:40:47 +08:00
Santy-Wang cb7e5d54c2 revert convertToUINode deprecation (#12229) 2022-07-27 19:39:11 +08:00
SijieWang d871c1eb5d [Optimize] When MENU is specified, do not put it in the custom script (#12123) 2022-07-21 23:32:08 +08:00
minggo ccb5fb97e0 prevent adding more than one rendering component to a node (#12121) 2022-07-21 14:47:13 +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
Santy-Wang 7bc135e1c7 adjust initialization process (#11143)
* adjust init process

* fix bugs

* restructure

* tweak

* delete useless code

* fix ci

* support more platform and fix some bugs

* mark internal

* tweak

* add docs

* add docs and little adjustment

* fix bugs

* adjust decorator execute order

fix mesh error

* fix bugs

* revert some change

* revert auto-generated code

* revert auto-generated code
2022-07-03 21:16:09 +08:00
pandamicro 130a770cbd Cleanup imports (#11811) 2022-07-01 22:21:15 +08:00
ChiaNing f2a9607aa4 The base version of sorting priority add (#11599)
* sorting Priority add

* fix CI

* name change

* binding add

* name change to priority

* bind remove

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-06-20 17:54:31 +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
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
ChiaNing 045e6430cb add base-Renderer and separate & rename renderableComp (#10903)
* add base-Renderer and separate & rename renderableComp

* rename

* some fix

* misc fix

* format change

* file name change & api doc add

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-05-09 17:44:56 +08:00
pandamicro 6912ea1c62 Update api doc for core/renderer/scene (#10962)
* Update api doc for core/renderer/scenne

* Improve doc
2022-05-06 16:23:39 +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
黄森斌 054c1d8eaf [Bug] fix cc.ClickEvent target type error (#10552)
* fix cc.ClickEvent target type error

* add event handler schema

* add comments

* add comments
2022-04-10 09:54:30 +08:00
alpha 4ded28118b improve camera-component inspector (#10708) 2022-04-09 10:21:42 +08:00
PP d749bbe1c4 remove legacyPublic tag (#10702) 2022-04-08 19:41:20 +08:00
pandamicro f15932c146 Minor module refactor in core/renderer/ (#10643)
* Move render-scene and native-scene

* Minor changes
2022-04-08 13:06:30 +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
黄森斌 d065ca6aee V3.5.0 fix bug: reset renderer-component would not update model (#10342)
* fix bug: reset materials would not update model

* add comment

* reset _materials.length

* fix bug: model in scene would not disappear when remove mesh

* modify code written
2022-03-22 17:57:56 +08:00
pandamicro d3f5e58acc Fix templates and minor tweaks (#10434)
* Fix templates

* Minor tweaks

* Minor
2022-03-22 17:22:41 +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
Zhang mingzhen 083918f92b console exception if comp'node is null (#9723)
* output error when node of comp is null #9214

(cherry picked from commit 2d8ac78094af8a5ef1866140abb2819ed0bf8bba)

* use 'assertIsTrue'

(cherry picked from commit 62a29d8cce733de49220945a2de0dd0f40e3a1f6)

* update log

(cherry picked from commit ad4327e95f4f1e75a18f2cb2b0e7127260a4ed35)

* optimize format

* add DEBUG condition and fix bug

* output error when comp.name is invoked and replace condition that judge whether comp.name is valid.

* remove component.name error log and optimize null node exception report

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-11-25 10:08:12 +08:00
Jare Guo e4d503885c Add MissingScript debug code, no functional changes (#9618) 2021-11-24 15:30:56 +08:00
pandamicro 4c526a60c7 Update comment about component.schedule 2021-11-16 10:10:02 +08:00
pandamicro d184f5817b Small tweaks (#9599)
* Make scene._renderScene protected

* Fix removed property access
2021-11-02 18:28:21 +08:00
Yun Hsiao Wu 3493f0c02f fix camera pre-rotation adaptation (#9534)
* fix camera pre-rotation adaptation

* more consistent wrap modes
2021-10-26 15:29:12 +08:00
Leslie Leigh (李的序) f1f0fbaf16 [WIP] Feature: NewGenAnim (#9331)
* NewGenAnim

* Fix/Optimize simple directional blending

* Class transition by type (#29)

* Transition & Gradient transition (#30)

* The default ExitCondition should be 1.0

* Do correct graph eval

* Fix PoseSubgraph connect() signature order (#31)

* Graph defaults test (#32)

* Conditions (#33)

* Trigger (#34)

* Transition should only be considered when satemachine exited (#35)

* Add layer.name (#36)

* Fix some behaviours; add API to query poses and transition (#37)

Fix single frame exit condition behaviours; Fix pose -> subgraph behaviours

* Support self transition; refactor sub state machine implementation (#38)

* Temp

* Flat whole layer statemachine

* Add test for test reset triggers

* Allow self transition

* Self transition test

* Fix deserialize (#39)

* update animgraph template (#40)

* The inheritance of any state (#41)

* StateMachine events (#42)

* Fix state machine events; Allow multiple transitions between two nodes (#43)

* Transition priority test (#44)

* Optimize variable bind (#45)

* Fix variable bind errors (#46)

* Expose blend algorithm to editor (#47)

* Cont (#48)

* update animgraph template (#49)

* update animgraph template

* update animgraph template

* Pose speed (#50)

* blend tree add EditorExtendable data (#51)

* Correct pose blend duration (#52)

* Export some types (#53)

* animation pose EditorExtendable (#54)

(cherry picked from commit d5dd5f32c9dbacb68c016ff8ba56d383c781a021)

* Implement clone() (#55)

* Fix trigger condition serialization (#56)

* Add variable type: integer (#57)

* Optimize 0 weight case (#58)

* Relative duration (#59)

* update_hdr_skybox (#9230)

* Rename.. (#60)

* Optimize animation blend item export (#61)

* Fix Type (#62)

* modify aniamtion graph template data (#63)

* modify aniamtion graph template data

* add animation graph component template

* Fix serialize issue (#64)

* Optimize (#65)

* Remove MotionState.startRatio, loop (#66)

* Update (#67)

* Fix circular reference (#68)

* CR (#69)

* Fix exit time greater than 1 (#70)

Co-authored-by: 黄森斌 <arsen2010@126.com>
Co-authored-by: linshunjun <49218738+linshunjun@users.noreply.github.com>
2021-10-14 10:28:23 +08:00
Santy-Wang 75a22d4b98 support require component array (#9366)
* support require component array

* fix lint

* refine
2021-09-23 14:00:55 +08:00
J.C 677599de35 2 subtle improvements (#9318)
* add an optional parameter `out`

* no need to create temp function when clear the `targetTexture`
2021-09-14 18:28:59 +08:00
cary 0a1356a816 Compatible with non-ReadOnly parameters. (#9160) 2021-08-15 22:01:41 +08:00
ChiaNing 48bf90d61d fix canvas targetTexture bug (#9116)
* fix canvas targetTexture bug

* resize camera by event

* name change
2021-08-04 12:01:55 +08:00
Santy-Wang 00367f39e1 support auto-finalization in editor (#9008)
* support auto-finalization in editor

* refine

* refine

* handle global variable

* refine

* fix bug

* refine

* use debug instead
2021-07-23 15:10:40 +08:00
Yun Hsiao Wu 2afcb2ac1b fix material instance restore (#9031) 2021-07-22 00:20:39 +08:00
stanleyljl b4d653aeb3 swap setMaterialInstance parameters (#9021)
* swap setMaterialInstance parameters

* add warnID for setMaterialInstance

Co-authored-by: lijilin <jilin.li@cocos.com>
2021-07-20 21:11:55 +08:00
Leslie Leigh (李的序) 705c977fc9 Binary serialization (#8946)
* Binary serialization

* Update snapshots

* Update

* rename option ccon -> useCCON

* Missing script

* encodeCCONJson: chunks -> chunkURLs

* Update

* (de)serializeSymbol -> (de)serializeTag;

* CustomizedSerializable -> CustomSerializable

* _deserializePrimitiveObject -> _fillPlainObject

* Unify CCClass CCClassConstructor

* encodeCCONJson -> parseCCONJson

* Custom serializable

* Move (de)serializeSuper(This) from context into global

* property -> read(write)Property; (de)serializeThis(Super) -> (read)writeThis(Super)

* CI and lint

* Mock cc env
2021-07-15 10:21:25 +08:00
Santy-Wang 79c8366756 fix typo (#8932) 2021-07-05 22:13:33 +08:00
mmyduckx ec7a87afa3 add spine&db system && optimize system priority (#8866)
* add spine&db system && optimize system priority

* refine spine/db system

* fix misspelling

* refine

* remove errorID

* remove errorID
2021-06-29 16:59:52 +08:00
cary f37099c294 Change the parameter of the math library to Readonly. (#8765)
* Change the parameter of the math library to Readonly.

* fix ci

* fix ci

* fix ci

* fix ci

* fix ci

* delete pool
2021-06-04 17:36:15 +08:00