Commit Graph

56 Commits

Author SHA1 Message Date
Santy-Wang
8601de5de0 adjust api docs (#10871)
* adjust api docs

* refine

* add english doc
2022-04-26 19:14:47 +08:00
Leslie Leigh (李的序)
2ecf99ad53 Optimize animation document (#10860)
* Optimize animation document

* Update

* Update

* Update
2022-04-26 15:44:38 +08:00
Leslie Leigh (李的序)
d97e453b07 Fix decorator order issue in standalone mode (#9911)
* Fix decorator order issue in standalone mode

* Apply

* Update
2022-01-05 23:30:21 +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
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
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
黄森斌
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
Leslie Leigh (李的序)
0ddc51ac71 Implements array.move() (#8790) 2021-06-09 11:34:58 +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
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
Leslie Leigh (李的序)
9bd9baac12 Eslint autofix all (#8108)
* Eslint autofix all

* Manual fix
2021-01-09 11:41:10 +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
32598c25cb switch to eslint (#7727)
* switch to eslint

* eslint: extends airbnb
2020-11-09 10:19:12 +08:00
Jare Guo
676c267150 remove RawAsset (sync #6286) (#7697) 2020-11-08 22:45:15 +08:00
Jare Guo
a0d5508779 simplify attribute implements (sync #5040) (#7679) 2020-11-05 17:37:56 +08:00
pandamicro
6101d772a2 Merge remote-tracking branch 'origin/3d-v1.2' into 3d
# Conflicts:
#	EngineErrorMap.md
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/data/decorators/property.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/forward/scene-culling.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/renderer/scene/shadows.ts
#	cocos/core/renderer/ui/mesh-buffer.ts
#	cocos/core/renderer/ui/ui-vertex-format.ts
#	cocos/core/scene-graph/scene-globals.ts
#	cocos/terrain/terrain.ts
#	cocos/ui/assembler/graphics/webgl/graphics-assembler.ts
#	cocos/ui/components/graphics.ts
#	editor/assets/default_prefab/3d/Capsule.prefab.meta
#	editor/assets/default_prefab/3d/Cone.prefab.meta
#	editor/assets/default_prefab/3d/Cube.prefab.meta
#	editor/assets/default_prefab/3d/Cylinder.prefab.meta
#	editor/assets/default_prefab/3d/Plane.prefab.meta
#	editor/assets/default_prefab/3d/Quad.prefab.meta
#	editor/assets/default_prefab/3d/Sphere.prefab.meta
#	editor/assets/default_prefab/3d/Torus.prefab.meta
#	editor/assets/default_prefab/Camera.prefab.meta
#	editor/assets/default_prefab/Terrain.prefab.meta
#	editor/assets/default_prefab/effects/Particle System.prefab.meta
#	editor/assets/default_prefab/light/Directional Light.prefab.meta
#	editor/assets/default_prefab/light/Sphere Light.prefab.meta
#	editor/assets/default_prefab/light/Spot Light.prefab.meta
#	editor/assets/default_prefab/ui/Button.prefab.meta
#	editor/assets/default_prefab/ui/Canvas.prefab.meta
#	editor/assets/default_prefab/ui/EditBox.prefab.meta
#	editor/assets/default_prefab/ui/Label.prefab.meta
#	editor/assets/default_prefab/ui/Layout.prefab.meta
#	editor/assets/default_prefab/ui/Mask.prefab.meta
#	editor/assets/default_prefab/ui/ProgressBar.prefab.meta
#	editor/assets/default_prefab/ui/ScrollView.prefab.meta
#	editor/assets/default_prefab/ui/Slider.prefab.meta
#	editor/assets/default_prefab/ui/Sprite.prefab.meta
#	editor/assets/default_prefab/ui/Toggle.prefab.meta
#	editor/assets/default_prefab/ui/ToggleContainer.prefab.meta
#	editor/assets/default_prefab/ui/Widget.prefab.meta
2020-10-21 18:35:11 +08:00
Jare Guo
0319477911 fix decorator warning of ValueTypes (#7553)
* fix decorator warning of ValueTypes (sync #6285)

* refresh copyright
2020-10-21 16:31:41 +08:00
Leslie Leigh (李的序)
114746ec50 Remove es5 cc class (#7504)
* Remove empty comments

* Remove CCClass() style class declaration

* Optimize
2020-10-19 11:51:37 +08:00
Jare Guo
a0a992de5d remove asserts from addChild & sync 2D changes (#7479)
* remove asserts from addChild

* expose js._registeredClassIds & js._registeredClassNames (sync #3174)

To unload scripts dynamically.
Also revert part of changes from https://github.com/cocos-creator/engine/pull/3204/files#diff-cabe5229c3c6e31339220008e54fe853L421

* remove unused code (sync #3174)

* minor tweak (sync #3421)

* should not invoke component if destroy() called before node activating (sync #3430)

* node should removed and destroyed with scene (sync #3456 #3483)

* fix WebGL detection on Android browsers (sync #3510)

* remove redundant right shift for bitwise operation (sync #3754)

* fix label blur when using dark font color (sync #3949)

* refine tooltip of Block Input Event (sync #4053)

* fix IE/Edge exception when output log/warn before engine initialization(sync #4447, #4500)

* sync class, attribute (#4689, #4712, #4781, #4712)

* fix loading unknown texture format (sync #4820)

* prefer toLowerCase to toLocaleLowerCase + sync #5114

* optimize bezier calculation (sync #5155)

* fix potential memory leak in scene-editor (sync #5643)

* fix _posDirty error of Mask on native platform (sync #6168)
2020-10-15 17:28:14 +08:00
Leslie Leigh (李的序)
bc5b531191 Add decorator @editable @serializable (#7178) 2020-09-02 11:44:12 +08:00
Leslie Leigh (李的序)
5e2adea787 Rename internal usages of global variable 'cc' into 'legacyGlobalExpo… (#6680)
* Rename internal usages of global variable 'cc' into 'legacyGlobalExports'

* Fix CI

* Rename 'legacyGlobalExports' -> 'legacyCC'
2020-05-14 15:46:45 +08:00
Leslie Leigh (李的序)
ebf45b15ae Bump eslint; Optimize an error string; Add assert functions (#6398)
* Bump eslint; Optimize an error string; Add assert functions

* Add comment

* Add license
2020-03-23 19:08:16 +08:00
Leslie Leigh (李的序)
284aa38d25 Build time constants (#6256)
* consts

* Bump @cocos/build-engine version

* Fix

* Upload @cocos/build-engine

* Rm scripts/build-engine/.gitignore
2020-03-11 14:05:22 +08:00
Yun Hsiao Wu
7fc712d132 fix socket anim (#6101) 2020-01-14 15:45:24 +08:00
Leslie Leigh (李的序)
49d16626a2 Eliminate "cc." references to APIs in module "cocos/core/platform/debug" (#5861) 2019-12-12 19:07:14 +08:00
Lelie Leight (李的序)
62a3ed7b2b Scripting 2.0-Part 1 (#5781)
* Scripting 2.0-Part 1

* Bump typescript to 3.7.2

* use event for EditorExtends

* update
2019-12-11 17:39:47 +08:00
Lelie Leight (李的序)
441435e474 optimize size of serialized animation clip (#5559) 2019-10-21 15:35:20 +08:00
Lelie Leight (李的序)
1e62004e12 add extendsEnum() to support extending of enumerations (#5454)
typo


update


update
Update button-component.ts
Update toggle-component.ts
Update toggle-component.ts
Update toggle-component.ts
Update button-component.ts
Update toggle-component.ts
Update button-component.ts
2019-10-17 09:57:17 +08:00
pandamicro
05c61574b9 Fix super.destroy check for new scripting system (#5386) 2019-09-12 18:39:26 +08:00
pandamicro
9f89b0ef24 New module division (#5285)
* Temp

* temp

* move ui core

* Arrange ui and terrain

* Fix import path for all modules except core

* Move primitives into core

* Fix debug.getError

* Move audio-downloader to audio module

* export game from game.ts

* Migrate load-pipeline to ts

* Fix core modules and cleanup

* Move animation into core

* Fix module exports

* Fix director issue

* Remove most cc.director usage

* Fix ts issues

* Fix issues for unit test and editor running

* Revert removing deprecated import

* tweaks

* tweaks

* Fix ci

* Fix ci

* Add modules in module division

* Upgrade coordinates-converts-utils
2019-08-30 11:35:22 +08:00
Yun Hsiao Wu
ff19a901c1 refine details (#5164)
* effect adapt

* restore tslint

* refine math constants
2019-08-15 21:52:32 -05:00
Leslie Leigh
69f864cbf4 uniform-k (#5034)
* uniform-k

* update

* update

* typo

* opt AnimCurve constructor

* refactor animation-clip

* rename

* adapt animation clip new data structure to skeletal animation clip

* opt error

* opt error msg

* uniform test current file configuration

* opt err msg

* opt

* fix

* adapt skeletal clip

* fix

* fix

* fix
2019-08-08 21:38:20 -05:00
Yun Hsiao Wu
5f651dad6f fix circular ref (#5131)
* fix circular ref

* remove tslint usage
2019-08-08 21:25:54 -05:00
pandamicro
1380e46c34 Unittest (#4973)
* unit test for ts

* Fix ts-jest warnings

* Remove puppeteer for now

* fix physics define and jest config for windows

* Replace Node ref with INode ref

* Fix ci issue

* Fix

* tweak

* tweak

* Fix vscode launcher

* now physics framework export all physics component (#28)

* tweaks
2019-07-25 17:15:20 +08:00
Leslie Leigh
4b802a9273 sync ccclass from creator v2.2.0 (#4719)
* sync ccclass from creator v2.2.0

* ccclass fixes
2019-07-01 14:54:15 +08:00
ChiaNing
9b3858a3e7 API-Doc format modify (#4761) 2019-07-01 09:33:24 +08:00
ChiaNing
408cc6f930 Copyright Notice format change (#4665) 2019-06-21 09:34:05 +08:00
Leslie Leigh
44f1669fa6 add readOnly decorator (#4626)
* update api document for ILerpable

* add readOnly decorator

* rename readOnly to constget

* doc
2019-06-17 12:00:06 +08:00
ChiaNing
6ee7107a32 Format adjustment for api doc (#4625) 2019-06-14 14:43:21 +08:00
gameu3d
5d76d67f0a fix typos (#4548) 2019-06-04 15:22:56 +08:00
ChiaNing
44def350a0 Some core code modify to TS ( core/data/... ) ( bug fixed ) (#4466)
* Some core code modify to TS ( core/data/... ) ( bug fixed )

* Some core code modify to TS ( Fixed the problem before )

* change for of
2019-05-28 11:55:05 +08:00
ChiaNing
acaecd2e26 Revert "Some core code modify to TS ( core/data/... ) (#4455)"
This reverts commit d7c6046807.
2019-05-21 10:42:51 +08:00
ChiaNing
d7c6046807 Some core code modify to TS ( core/data/... ) (#4455) 2019-05-20 10:54:26 +08:00
zxg0622
cbd889b71f change particle inspector layout (#4384) 2019-05-07 10:44:50 +08:00
Leslie Leigh
d259b23355 typing (#4271)
* typing

* typing

* rm
2019-04-22 20:06:29 +08:00
Leslie Leigh
ac0930e42f Ccclass (#4254)
* to ts

* optimize class-decorator declaration
2019-04-20 09:53:09 +08:00
Leslie Leigh
5936b42393 animation (#4153)
* animation

* animation

* update
2019-04-04 19:09:09 +08:00
Jare Guo
ef77d2b342 improve properties declaration (#3842)
* improve properties declaration

* cherry pick: CCClass: allow array type working togather with getter (#3545)

Commit:
37f4f06419 [37f4f064]
2019-02-14 15:31:21 +08:00
Huabing.Xu
164221b5a5 Renderer (#3278)
* add renderer to ccgame, add camera component

* apply stash

* fix predefine.js

* add renderable and rendersystem

* fix format

* fix debug

* fix run errors
2018-09-19 15:21:06 +08:00