@galacean/engine-core 2.0.0-alpha.41 → 2.0.0-alpha.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "2.0.0-alpha.41",
3
+ "version": "2.0.0-alpha.44",
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.41"
21
+ "@galacean/engine-math": "2.0.0-alpha.44"
22
22
  },
23
23
  "devDependencies": {
24
- "@galacean/engine-design": "2.0.0-alpha.41"
24
+ "@galacean/engine-design": "2.0.0-alpha.44"
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 entity include children and components.
140
- * @returns Cloned entity
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
@@ -130,6 +130,7 @@ export declare class Script extends Component {
130
130
  * Called at the end of the destroyed frame.
131
131
  */
132
132
  onDestroy(): void;
133
+ private _hasCollisionEventCallbacks;
133
134
  }
134
135
  export declare enum PointerMethods {
135
136
  onPointerDown = "onPointerDown",
@@ -29,7 +29,7 @@ export type LoadItem = {
29
29
  params?: Record<string, any>;
30
30
  } & PickOnlyOne<{
31
31
  /**
32
- * Loading url.
32
+ * URL of the resource to load.
33
33
  */
34
34
  url: string;
35
35
  /**
@@ -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 url
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 url
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 urls
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;
@@ -40,10 +40,10 @@ export declare class PrimitiveMesh {
40
40
  */
41
41
  static createCuboid(engine: Engine, width?: number, height?: number, depth?: number, noLongerAccessible?: boolean): ModelMesh;
42
42
  /**
43
- * Create a plane mesh.
43
+ * Create a plane mesh with U mapped along local +X and V along local +Z.
44
44
  * @param engine - Engine
45
- * @param width - Plane width
46
- * @param height - Plane height
45
+ * @param width - Plane width along the local X axis
46
+ * @param height - Plane height along the local Z axis
47
47
  * @param horizontalSegments - Plane horizontal segments
48
48
  * @param verticalSegments - Plane vertical segments
49
49
  * @param noLongerAccessible - No longer access the vertices of the mesh after creation
@@ -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 colliders' collision detection mode.
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);
@@ -16,6 +16,7 @@ export declare class PhysicsScene {
16
16
  private _colliders;
17
17
  private _gravity;
18
18
  private _nativePhysicsScene;
19
+ private _contactEventConsumerCount;
19
20
  /**
20
21
  * The gravity of physics scene.
21
22
  */