Commit Graph

209 Commits

Author SHA1 Message Date
Leslie Leigh (李的序) 17dbf69312 Fix animation graph deserialize problem (#9481)
* Fix animation graph deserialize problem

* Build warns
2021-10-14 10:30:08 +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 6391b5705a Merge branch 'v3.3.2' of github.com:cocos-creator/engine into v3.4.0-physx 2021-09-24 12:11:48 +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
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
Santy-Wang 5a6b56b095 avoid destroy twice (#9310) 2021-09-09 18:30:52 +08:00
Leslie Leigh (李的序) 5146f672a3 Fix EditorExtendable when compile in babel loose (#9264) 2021-08-31 13:49:29 +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
pandamicro 37671f8063 Fix IsClientLoad missing (#9175) 2021-08-13 15:25:02 +08:00
媛媛 7801987f7f fix missing class report (#9137) 2021-08-05 11:00:39 +08:00
Leslie Leigh (李的序) 3a52b35f3c Optimize CCON related messages (#9122) 2021-08-04 10:02:53 +08:00
Santy-Wang 9372754099 handle effect asset update in editor (#9118)
* handle effect asset update in editor

* refine

* refine
2021-08-03 15:11:24 +08:00
cary 6bf82a91ee Delete support of onAfterDeserialize_JSB. (#9075) 2021-07-27 15:04:30 +08:00
Leslie Leigh (李的序) ea88c48589 CCONBinary: chunk align as 4->8 (#9065) 2021-07-27 14:57:23 +08:00
Jare Guo b8e2d4fbce Clarify the handling of non-CCClass types by dynamic deserialization (#8624)
Uniform with serialization rules.
2021-07-27 13:56:34 +08:00
Santy-Wang 41e0656cfa support cconb in other platform (#9055)
* support cconb in minigame

* preprocess extension

* refine

* remove generic type

* dont change ext
2021-07-23 22:36:27 +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
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
Leslie Leigh (李的序) 4cb8eeeffd Support CCONB asset loading (#8996)
* Support CCONB asset loading

* Lint

* Optimize
2021-07-18 22:54:16 +08:00
Leslie Leigh (李的序) bc817790b8 Add flag to indicates if is targeting CCON (#8990)
* Add flag to indicates if is targeting CCON

* Fix

* Fix

* Add case

* Fix __id__: 0
2021-07-16 11:32:12 +08:00
黄森斌 8e03bfea2e V3.3.0 property decorate add group configuration (#8972)
* change decorate tab to group

* fix inspector edit bug on utils prop

* optimize options of 'group' decorate

* group id replace group key
2021-07-16 11:23:19 +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 (李的序) f3c0ffbcf4 Fix compiled deserialize (#8983) 2021-07-15 15:02:27 +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
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
Leslie Leigh (李的序) ac53e5e60e Fix dynamic deserialize error when build (#8948) 2021-07-09 11:18:32 +08:00
Leslie Leigh (李的序) 34ae92c933 Optimize loader (#8945)
* ss

* Cleaner asset manager implementation
2021-07-08 14:51:01 +08:00
GengineJS 3950b7fac6 Export math library attribute values ​​and fix tween not working (#8911) 2021-06-30 11:43:05 +08:00
Leslie Leigh (李的序) 93e76714c6 Class decorator uniquelyReferenced (#8894)
* Class decorator unique

* unique -> uniquelyReferenced

* Add unit test

* Update doc

* Optimize for non-serialization env

* Update
2021-06-29 16:06:40 +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
Leslie Leigh (李的序) 9dcf57bf46 Fix editor extendable mixin (#8889) 2021-06-25 15:49:32 +08:00
Leslie Leigh (李的序) b7d2be4ef7 Fix editor extendable (#8782)
* Fix editor extendable

* Update editor-extendable.ts

* Update editor-extendable.ts
2021-06-21 13:55:02 +08:00
Leslie Leigh (李的序) 9be4e5e2cf Add editor extendable 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
Leslie Leigh (李的序) 0ddc51ac71 Implements array.move() (#8790) 2021-06-09 11:34:58 +08:00
Leslie Leigh (李的序) b8bed774df Fix editor extendable (#8782)
* Fix editor extendable

* Update editor-extendable.ts

* Update editor-extendable.ts
2021-06-08 11:27:54 +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
Santy-Wang 2b3ab66a47 add asset place holder and remove deferred loading (#8473)
* remove deferred loading and add place holder

* resolve circle referenced

* support most of asset

* refine

* fix bugs

* refine

* should use getClassId

* change name

* change name

* change isPlaceHolder to isDefault
2021-04-19 19:48:27 +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
Leslie Leigh (李的序) 2cd6091e2b Support reflect property "tab" (#8437) 2021-04-16 15:37:47 +08:00
Leslie Leigh (李的序) b7eb45411a Add editable attribute fixedArrayLength (#8368) 2021-04-14 13:37:44 +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
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
ChiaNing 90d94fead6 api module change (#8272)
(cherry picked from commit 314ede133cd6b1873b6f71876f16947733de2c46)
2021-02-25 17:31:08 +08:00
Leslie Leigh (李的序) 13baf8a845 binarySearch series functions: document and unit test (#8114)
* binarySearch series functions: document and unit test

* Fix lint errors

* Update

* Update

* Update
2021-01-11 11:51:16 +08:00
Jare Guo 0f4a49a5ec deserializer: Fill default asset value as null for primitive objects (no constructor) (#8113) 2021-01-09 16:18:49 +08:00
Leslie Leigh (李的序) 9bd9baac12 Eslint autofix all (#8108)
* Eslint autofix all

* Manual fix
2021-01-09 11:41:10 +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