santy-wang
01ceef90c1
Merge branch 'v3.4.0' of github.com:cocos-creator/engine into v3.5.0
2021-12-03 00:08:06 +08:00
ChiaNing
1c0db6414a
mesh buffer cache add ( #9728 )
...
* UI MeshBuffer Cache add
* support hierarchy changed event
* notify upper
* use Dirty by Hierarchy Changed
* PR fix
* Fix CI
* fix CI
* support hierarchy changed event & function name change
* function name change
* comment add
* type change
Co-authored-by: santy-wang <wh19930829@qq.com >
2021-11-25 21:25:16 +08:00
Leslie Leigh (李的序)
d47f5eb6a5
AnimationController.variables() ( #9710 )
...
* AnimationController.variables()
* rename, add test
* rename
2021-11-24 14:54:56 +08:00
santy-wang
6cde877e5b
Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0
2021-11-24 14:23:21 +08:00
Santy-Wang
c08d69f664
introduce container manager ( #9640 )
...
* introduce pool manager
refine
refine
fix render mode
introduce pool manager
refine
* refine
* fix ci
* fix spine buffer
* add unit test
* add unit test 2
2021-11-22 23:23:19 +08:00
zhakesi
fed044e8fb
optimize opacity update ( #9679 )
...
* optimize opacity update
* remove _cacheAlpha
* modify code style
* Update cocos/core/scene-graph/node-ui-properties.ts
* Update cocos/core/scene-graph/node-ui-properties.ts
* 1. supplement unit test case
2. supplement default dirty parameter
(cherry picked from commit 7e62d265ffbc8566e92bfcc10c1f9eb68e081487)
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-11-19 17:35:19 +08:00
Leslie Leigh (李的序)
d5154269e2
Fix log() takes not effect if debug mode <= verbose ( #9681 )
2021-11-18 12:00:24 +08:00
Leslie Leigh (李的序)
05484abc30
Rename animation.StateStatus -> animation.MotionStateStatus ( #9675 )
2021-11-17 15:55:03 +08:00
Santy-Wang
89f8cfbad3
optimize layer ( #9658 )
...
* optimize layer
* refine
2021-11-13 15:33:07 +08:00
PP
1abbc90c23
compability for PROPORTIONAL_TO_FRAME container strategy ( #9642 )
...
* support isProportionalToFrame field on screen-adapter
update
stash
* rename _setupContainer to _setupCanvas
* optimize view.setResolutionPolicy()
* remove TIME_OUT to handle resize event
* compability for PROPORTIONAL_TO_FRAME container strategy
comp
update
* add NOTE
* optimize 'window-resize'
resize
* deprecate game.frame && game.container
deprecate
game
* close screen.resolutionScale interface
close
* fix npm test
* fix view unit test
* space
2021-11-11 19:24:39 +08:00
Yun Hsiao Wu
a3bc15d83d
misc fixes ( #9631 )
...
* prefer D24S8 first
* webgl creates only one context
* restore render area semantic
* fix inefficient usages in pipeline
* fix raycast pre-rotation adaptation
* draw profiler only once
2021-11-11 17:21:09 +08:00
Leslie Leigh (李的序)
c961d105f3
Triggers should be only reset when a motion state arrived ( #9612 )
...
* Triggers should be only reset when a motion state arrived
* Code
* Fix
2021-11-03 19:43:53 +08:00
Leslie Leigh (李的序)
48dbbe3293
Respect to wrap mode of animation clip ( #9607 )
2021-11-03 16:43:19 +08:00
Leslie Leigh (李的序)
07fb27dac4
Support more state machine component callbacks ( #9556 )
...
* StateMachineComponent
* Rename
2021-11-01 10:31:27 +08:00
Zhang mingzhen
9f77edb1f7
Add a method "getCompletePath()" to print complete path in hierarchy ( #9536 )
...
* Bump tmpl from 1.0.4 to 1.0.5 (#9357 )
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases )
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5 )
---
updated-dependencies:
- dependency-name: tmpl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add a method "getCompletePath()" to print complete path in hierarchy#9203
(cherry picked from commit 9acba34514f43730494b548a7e9c22bf21a6d555)
* delete "getCompletePath()" in "BaseNode" and "Scene"
* Revert "Bump tmpl from 1.0.4 to 1.0.5 (#9357 )"
This reverts commit 33375839a6 .
* Optimize method name and supplement the annotations #9203
* optimize annotations
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-10-30 18:12:24 +08:00
Zhang mingzhen
f6edc13da7
set active false if param is undefined or null ( #9571 )
...
* set active false if param is undefined #9397
* add condition that param is null and the unit test #9397
* ignore grammar error
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-10-30 15:23: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 (李的序)
c56fa21d33
Exit transition shall not consume triggers ( #9519 )
2021-10-21 19:50:20 +08:00
Leslie Leigh (李的序)
6583b7c780
Hide animation graph asset creation API in runtime ( #9491 )
2021-10-15 15:23:23 +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
Leslie Leigh (李的序)
74dd46657d
Animation graph variable: rename number to float ( #9486 )
...
* Animation graph variable: rename number to float
* Add name property to animation blend
2021-10-14 18:02:49 +08:00
Leslie Leigh (李的序)
df9b5ccdce
Remove transition by transition object ( #9483 )
2021-10-14 10:30:09 +08:00
Leslie Leigh (李的序)
81d41f5446
Refine dangling transition behaviour ( #9466 )
2021-10-14 10:29:37 +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
PP
5878829d51
refactor UI pointer event dispatcher ( #9363 )
...
* optimize node event processor
# Conflicts:
# cocos/core/scene-graph/node-event-processor.ts
# cocos/core/scene-graph/node.ts
* support pointer event dispatcher
* remove event manager, event listener
# Conflicts:
# cocos/core/director.ts
# cocos/input/index.ts
* remove docs for event-manager
* fix pointer lock on web
* BREAKING-CHANGE: ui-transform.isHit interface
ud
* fix CI
* fix CI
* activeInHierarchy
2021-09-24 13:34:43 +08:00
Santy-Wang
e8cf9a0ada
export active-in-hierarchy-changed event ( #9369 )
2021-09-23 14:22:18 +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
Santy-Wang
b608ff8315
optimize render texture ( #9342 )
...
* optimize render texture
* refine
2021-09-18 12:04:39 +08:00
Santy-Wang
a1b018ebc0
Headless Mode ( #9345 )
...
* Headless Mode
* refine annotation
2021-09-18 10:58:00 +08:00
Santy-Wang
cf3e10b6c4
sync some unit test from 2.4 ( #9321 )
...
* add unit test
* add more unit test
* refine
* add test
* add more unit test
* add more unit test
* more change
* add commit
* add unit test
* commit package-lock.json
* revert some
* refine code
* add more test
* fix bugs
* fix bugs
2021-09-13 19:05:39 +08:00
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
Yun Hsiao Wu
4cf1350fe0
gfx: swapchain refactor ( #9030 )
...
* update effect.hideInEditor
* swapchain refactor
* webgl multi draw
* implicit depth/stencil format
* native adapt
* explicit resizable texture
* DrawInfo in InputAssembler
* device cached states
* sync defines
* gfx: empty backend
* update playground
* remove profiler camera
* update effect types
* fix pass.resetUniform
2021-08-31 19:40:50 +08:00
ChiaNing
ee6d6e57e0
fix button original Scale bug ( #9237 )
...
* fix button original Scale bug
* update to apply Target
* check target valid
* add test
2021-08-31 09:07:51 +08:00
jiaxin.lai
9ccf2aa92b
add vec2 cross override and unit test ( #9250 )
...
* vec2 cross override
* add unit test
* docs
2021-08-25 18:43:55 +08:00
minggo
732f7a7ffa
do not shrink array when alloc and fix some logic error ( #9218 )
...
* do not shrink array when alloc
* add test case
2021-08-21 15:39:06 +08:00
Santy-Wang
abb8222ec9
Merge pull request #9223 from cocos-creator/v3.3.1
...
sync V3.3.1
2021-08-21 14:26:32 +08:00
zhakesi
d120ba3ace
fix:root node scene has no rts info. ( #9167 )
...
* fix:root node scene has no rts info.
* add lpos lrot lscale attributes for scene
2021-08-19 15:17:33 +08:00
jiaxin.lai
b229ec7912
refactor for physics initilization and physx pvd ( #9168 )
...
* mnior refactor
* fix
* stash
* move register and init to engine inited event
2021-08-18 13:39:08 +08:00
Leslie Leigh (李的序)
863d80a4e7
Add easing method to quat curve ( #9179 )
...
* Add easing method to quat curve
* Update
* Fix unit test
* lint
2021-08-16 14:54:22 +08:00
PP
829a9eb409
use jest.expect().toBeCloseTo() interface ( #9140 )
2021-08-05 14:56:41 +08:00
Leslie Leigh (李的序)
b2f8f5aa10
Fix a kind of easing method migration bug ( #9132 )
2021-08-04 17:07:27 +08:00
PP
c8be11cdc4
add view module test ( #9120 )
...
update
2021-08-03 13:53:46 +08:00
Leslie Leigh (李的序)
8a8a1230ba
Rename TrackPath methods ( #9086 )
2021-07-29 10:06:36 +08:00
Leslie Leigh (李的序)
44dc537b87
Update snapshot ( #9077 )
2021-07-27 16:58:33 +08:00
cary
6bf82a91ee
Delete support of onAfterDeserialize_JSB. ( #9075 )
2021-07-27 15:04:30 +08:00
Leslie Leigh (李的序)
5f5623f5f2
ExoticAnimation: split method; evaluation method test ( #9050 )
...
* ExoticAnimation: split method; evaluation method test
* Fix cross fade
* return throw
2021-07-23 16:13:28 +08:00
Leslie Leigh (李的序)
6d10f68ef8
AnimationCurve ( #8409 )
...
* AnimationCurve
* Mark curve frame values as uniquelyReferenced
* Adjust modules
* Update
* Manually implements KeyframeCurve.iterator
* TargetPath
* Update
* Fix BUG
* Fix
* Add size track
* Update
* Fix size; unit tests
* fix split animation (#24 )
* CCONB animation clip; Remove integer track/channel/curve
* Optimize key shared curves
* Remove keyframecurve.empty
* Exotic animation
* Fix unit tests
* start/end -> left/right
* Curve range rename
* Easing methods
* Fix untyped track
* Fix
* fix upgradUnTypedTracks (#26 )
* Rename
.interpMode -> .interpolationMode
RealInterpMode -> RealInterpolationMode
QuaternionInterpMode -> QuaternionInterpolationMode
ExtrapMode -> ExtrapolationMode
.preExtrap -> .preExtrapolation
.postExtrap -> .postExtrapolation
QuaternionCurve -> QuatCurve
QuaternionKeyframeValue -> QuatKeyframeValue
* Update pre/post extrap
* Optimize-1
* Optimize-2
* Eliminate for-of
* Mark deprecateds
* Hide RealKeyframeValue/QuatKeyframeValue Constructor
* Fix quat keyframe value name
* Error ID
* Fix RealKeyframeValue editor extras
* Elimanate for-of forEach
Co-authored-by: zheng han <sunstar198941@gmail.com >
2021-07-23 11:26:55 +08:00