@galacean/engine-core 2.0.0-alpha.41 → 2.0.0-alpha.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +103 -57
- package/dist/main.js.map +1 -1
- package/dist/module.js +103 -57
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/Entity.d.ts +2 -2
- package/types/Script.d.ts +1 -0
- package/types/asset/LoadItem.d.ts +1 -1
- package/types/asset/ResourceManager.d.ts +5 -3
- package/types/particle/modules/CustomDataModule.d.ts +4 -0
- package/types/particle/modules/SubEmittersModule.d.ts +4 -0
- package/types/physics/Collider.d.ts +1 -0
- package/types/physics/DynamicCollider.d.ts +3 -1
- package/types/physics/PhysicsScene.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.43"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "2.0.0-alpha.
|
|
24
|
+
"@galacean/engine-design": "2.0.0-alpha.43"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
package/types/Entity.d.ts
CHANGED
|
@@ -136,8 +136,8 @@ export declare class Entity extends EngineObject {
|
|
|
136
136
|
*/
|
|
137
137
|
clearChildren(): void;
|
|
138
138
|
/**
|
|
139
|
-
* Clone this
|
|
140
|
-
* @returns
|
|
139
|
+
* Clone this Entity, including children and components.
|
|
140
|
+
* @returns A detached clone that must be added to a parent Entity or Scene to update and render
|
|
141
141
|
*/
|
|
142
142
|
clone(): Entity;
|
|
143
143
|
/**
|
package/types/Script.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class ResourceManager {
|
|
|
60
60
|
load<T extends EngineObject>(path: string): AssetPromise<T>;
|
|
61
61
|
/**
|
|
62
62
|
* Get the resource from cache by asset url, return the resource object if it loaded, otherwise return null.
|
|
63
|
-
* @param url - Resource
|
|
63
|
+
* @param url - Resource URL
|
|
64
64
|
* @returns Resource object
|
|
65
65
|
*/
|
|
66
66
|
getFromCache<T>(url: string): T;
|
|
@@ -82,12 +82,12 @@ export declare class ResourceManager {
|
|
|
82
82
|
cancelNotLoaded(): void;
|
|
83
83
|
/**
|
|
84
84
|
* Cancel assets whose url has not finished loading.
|
|
85
|
-
* @param url - Resource
|
|
85
|
+
* @param url - Resource URL
|
|
86
86
|
*/
|
|
87
87
|
cancelNotLoaded(url: string): void;
|
|
88
88
|
/**
|
|
89
89
|
* Cancel the incompletely loaded assets in urls.
|
|
90
|
-
* @param urls - Resource
|
|
90
|
+
* @param urls - Resource URLs
|
|
91
91
|
*/
|
|
92
92
|
cancelNotLoaded(urls: string[]): void;
|
|
93
93
|
/**
|
|
@@ -107,6 +107,8 @@ export declare class ResourceManager {
|
|
|
107
107
|
private _createSubAssetPromiseCallback;
|
|
108
108
|
private _gc;
|
|
109
109
|
private _getResolveResource;
|
|
110
|
+
private _getLoadingKey;
|
|
111
|
+
private _getRemoteAssetURL;
|
|
110
112
|
private _parseURL;
|
|
111
113
|
private _parseQueryPath;
|
|
112
114
|
private _releaseSubAssetPromiseCallback;
|
|
@@ -73,6 +73,10 @@ export declare class CustomDataModule extends ParticleGeneratorModule {
|
|
|
73
73
|
* @param name - The name passed to {@link addGradient}
|
|
74
74
|
*/
|
|
75
75
|
removeGradient(name: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Remove all custom data streams.
|
|
78
|
+
*/
|
|
79
|
+
clear(): void;
|
|
76
80
|
private _uploadCurveStream;
|
|
77
81
|
private _uploadGradientStream;
|
|
78
82
|
private _zeroCurveUniforms;
|
|
@@ -31,6 +31,10 @@ export declare class SubEmittersModule extends ParticleGeneratorModule {
|
|
|
31
31
|
* @param index - Index of the sub-emitter to remove
|
|
32
32
|
*/
|
|
33
33
|
removeSubEmitterByIndex(index: number): void;
|
|
34
|
+
/**
|
|
35
|
+
* Remove all sub-emitter slots.
|
|
36
|
+
*/
|
|
37
|
+
clear(): void;
|
|
34
38
|
get enabled(): boolean;
|
|
35
39
|
set enabled(value: boolean);
|
|
36
40
|
}
|
|
@@ -24,6 +24,7 @@ export declare class Collider extends Component implements ICloneHook<Collider>
|
|
|
24
24
|
set collisionLayer(value: Layer);
|
|
25
25
|
/**
|
|
26
26
|
* Add collider shape on this collider.
|
|
27
|
+
* @remarks If the shape belongs to another Collider, it is moved to this Collider.
|
|
27
28
|
* @param shape - Collider shape
|
|
28
29
|
*/
|
|
29
30
|
addShape(shape: ColliderShape): void;
|
|
@@ -109,7 +109,9 @@ export declare class DynamicCollider extends Collider {
|
|
|
109
109
|
get constraints(): DynamicColliderConstraints;
|
|
110
110
|
set constraints(value: DynamicColliderConstraints);
|
|
111
111
|
/**
|
|
112
|
-
* The
|
|
112
|
+
* The collision detection mode.
|
|
113
|
+
* @remarks With the PhysX backend, Continuous and ContinuousDynamic are mapped to speculative CCD while the collider
|
|
114
|
+
* is kinematic.
|
|
113
115
|
*/
|
|
114
116
|
get collisionDetectionMode(): CollisionDetectionMode;
|
|
115
117
|
set collisionDetectionMode(value: CollisionDetectionMode);
|