Commit Graph

103 Commits

Author SHA1 Message Date
santy-wang c87577b809 Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4 2021-09-09 13:33:35 +08:00
PP 97b3657549 migrate input module out of platform (#9296)
* migrate input module out of platform

* revert EventKeyboard.isPressed deprecation

* fix CI
2021-09-07 15:24:43 +08:00
江战 16ccd6998e 3.3.1 优化属性访问 (#9265)
* opt for non-jit

* move out var

* revert

* Update cocos/core/scene-graph/node.ts

* reduce access property

* Update cocos/core/scene-graph/node.ts

* use normal for loop
2021-09-02 17:21:05 +08:00
pandamicro d059d03461 Add macro.ENABLE_GLES_ANTIALIAS (#9243)
* Rename macro.ENABLE_WEBGL_ANTIALIAS to macro.ENABLE_ANTIALIAS

* Upgrade game

* Rename to  ENABLE_GL_ANTIALIAS

* Improve api doc

* Revert scheduler

* Add ENABLE_GLES_ANTIALIAS

* Set default gles antialias to false
2021-08-31 13:51:55 +08:00
GengineJS 434249da19 Modify the math library (#9163)
* Modify the math library

* fix ci
2021-08-12 10:59:09 +08:00
GengineJS 3fbe3a1ea8 Treat the scene node as the native root node (#9072) 2021-07-29 18:30:42 +08:00
江战 6270f592be 3.3 some optimization (#9069) 2021-07-27 13:38:56 +08:00
GengineJS aa7ff8af0b Support native nodes to set parent to null (#9066) 2021-07-26 11:19:35 +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
GengineJS 4df80e89f4 Modify the sharing method of node changeFlag (#9016)
* Modify the way to add native instance views

* Modify the sharing method of node changeFlag

* Remove nodepool flagchange
2021-07-21 00:11:51 +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
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
GengineJS d13d782ed0 Change the timing of node destroy (#8925) 2021-07-01 14:45:01 +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
zxx43 6f72568906 V3.1.2 node bug fix (#8891)
* reduce clear frequency & check translate or rotate in updateWorldTransform function https://github.com/cocos-creator/3d-tasks/issues/7487

* make clear node as a static function

* revert

* Remove useless property

* Remove old transform maintainer properties

Co-authored-by: pandamicro <lphuabin@gmail.com>
2021-06-26 23:19:07 +08:00
ChiaNing cbf7090542 sprite fillbuffer cache & sprite misc change when set spf (#8876)
* sprite fillbuffer cache & sprite misc change when set spf

* misc fix

* remove Rect Dirty & add uiTransformDirty

* remove getHash
2021-06-25 13:57:24 +08:00
Leslie Leigh (李的序) 69bd320b9a Anim perf (#8865)
* Optimize and refactor skeletal animation blending(3.1)



* Type error

* Update xx

* Update yy
2021-06-24 23:13:29 +08:00
GengineJS 3b911a6554 [Add] native renderScene update (#8863) 2021-06-22 16:41:26 +08:00
minggo 72490d8236 Revert "[add] native renderScene update (#8781)" (#8847)
This reverts commit 2c6fda1e3e.
2021-06-18 18:13:10 +08:00
GengineJS 2c6fda1e3e [add] native renderScene update (#8781) 2021-06-18 17:34:17 +08:00
troublemaker52025 8ceb4beae7 add node.up && node.right (#8643)
* add node.up && node.right

* modify comments

* modify comments

* update

* Update cocos/core/scene-graph/node.ts

Co-authored-by: Santy-Wang <wh19930829@qq.com>

* Update cocos/core/scene-graph/node.ts

Co-authored-by: Santy-Wang <wh19930829@qq.com>

* Update cocos/core/scene-graph/node.ts

Co-authored-by: Santy-Wang <wh19930829@qq.com>

* Update cocos/core/scene-graph/node.ts

Co-authored-by: Santy-Wang <wh19930829@qq.com>

Co-authored-by: Santy-Wang <wh19930829@qq.com>
2021-06-10 11:58:06 +08:00
cary 4305e4c132 Modify the memory pool and remove the deprecated code. (#8776) 2021-06-10 09:06:35 +08:00
minggo 424232493e Merge pull request #8777 from minggo/merge_v3.1.2
Merge v3.1.2
2021-06-09 14:12:21 +08:00
cary a8c6297071 Delete array_a reset. (#31) 2021-06-09 14:07:24 +08:00
cary 7a265315b2 merge node change of v3.1.2 (#30) 2021-06-08 15:39:43 +08:00
zheng han 7dcce93d4f fix readonly tsc compile (#8772) 2021-06-08 09:35:14 +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
Leslie Leigh (李的序) a2266c9651 Optimize and refactor skeletal animation blending (#8753)
* Optimize and refactor skeletal animation blending

* Type error
2021-06-07 14:52:16 +08:00
zxx43 77c3e94faa V3.1.2 zxx43 performance 2 (#8764)
* reduce clear frequency & check translate or rotate in updateWorldTransform function https://github.com/cocos-creator/3d-tasks/issues/7487

* make clear node as a static function
2021-06-04 14:34:01 +08:00
zxx43 eea9c12084 reduce clear frequency & check translate or rotate in updateWorldTransform function https://github.com/cocos-creator/3d-tasks/issues/7487 (#8757) 2021-06-04 12:56:31 +08:00
GengineJS 2315b4d2dd Pipeline memory pool removed (#8738) 2021-06-02 17:23:02 +08:00
zxx43 e1f5d7393a V3.1.2 optimization #7487 (#8743)
* optimize fillBuffers & updateWorldTransform

* modify _updateWorldAlpha & invalidateChildren

* 3d should consider parent rotation, so use the Vec3.transformMat4 function

* remove if check null

* remove if check
2021-06-02 11:25:40 +08:00
jiaxin.lai c4cbb38011 optimize bullet and fix js sync to native (#8725)
* stash

* stash

* fix sync js rotation to native

* discard change the average time
2021-06-01 16:38:20 +08:00
Yun Hsiao Wu 0fc8e6fbbe node related optimizations (#8716)
* opt: node.invalidateChildren

* opt: cache pass states

* make hasChangedFlags visible to native

* fix switch case indent rule
2021-05-27 10:19:37 +08:00
GengineJS aaaac3797e [Change] coding style for scene objects (#8644) 2021-05-11 13:45:04 +08:00
jiaxin.lai ff37cc95fd fix sync node transform on native (#8558)
* fix sync node transform

* sync node dirty only if in jsb

* tweaks
2021-04-26 21:32:05 +08:00
jiaxin.lai 28d62c8393 native physx (#8455)
* Stash

* add plane/capsule shape

* add syncTo/FromNativeTransform

* support trigger/collision events

* set rigid body property on enable

* group distinguish between serialized  and lowlevel

* support trimesh-shape/mass-center

* fix cone/cylinder direction

* support cylinder/cone shape

* tweaks of pmtl

* fix setMesh

* support terrain

* support raycast

* support revolute joint

* support distance joint

* tweaks

* add some API docs

* tweaks

* optimize book and unBook

* tweaks

* tweaks
2021-04-19 20:21:29 +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
ChiaNing 034e380b50 mask event through bug (#8313)
* mask event through bug

* update
2021-03-02 13:51:19 +08:00
zheng han a526e499e4 reorganize prefab related files (#8291)
* reorganize prefab related files

* fix CI of component
2021-02-26 13:42:08 +08:00
Yun Hsiao Wu c4fea48631 fix terrain private node not sync with memory pool (#8222) 2021-01-27 18:54:17 +08:00
zheng han cfcc681ec7 add TargetOverride for prefab (#8154)
* add TargetOverride for prefab

* fix type
2021-01-18 21:55:24 +08:00
troublemaker52025 383245104e fix native platform node layer error (#8094) 2021-01-08 13:52:35 +08:00
zheng han 53f8360a07 new prefab system (#8000)
* add prefab instance

* add prefab instance

* support add normal child in prefabInstance

* add prefabInstance check

* remove active restore

* remove unused method

* fix CI

* add children in prefabInstance

* format

* fix ci

* fix according to review suggestion

* add null check

* fix CI

* move prefabInstance into prefabInfo

* fix problem according to review
2020-12-28 21:49:27 +08:00
echoooooo 1f8b1ce142 feat: add Node.setRotationFromEuler(val: Vec3) overload (#7945) 2020-12-11 19:44:56 +08:00
Jare Guo c10676df3c remove onBatchRestored & prefab._synced flag (sync #7163 #7271) (#7803) 2020-12-09 10:42:16 +08:00
pandamicro b162e21a93 Update license and API language declaration (#7750)
* Update licenses

* Update license for audio

* Update license for core/3d

* Update license for animation, assets, asset-manager, components, data

* update license for event, geometry, gfx

* update license for core modules

math, memop, pipeline, platform, primitive, renderer, scene-graph, utils, value-types

* Update license for core

* Update license for particle and particle-2d

* Update license for particle part2

* Update license for physics and physics-2d

* Update license for all modules in cocos

* Update license for exports

* Fix API doc language declaration
2020-11-10 17:36:31 +08:00
Yun Hsiao Wu 8d2ef1fe51 fix skybox effect (#7740)
* fix skybox

* fix subMesh.iaInfo
2020-11-09 17:55:55 +08:00
Yun Hsiao Wu 32598c25cb switch to eslint (#7727)
* switch to eslint

* eslint: extends airbnb
2020-11-09 10:19:12 +08:00