@galacean/engine-core 2.0.0-alpha.46 → 2.0.0-alpha.47

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.46",
3
+ "version": "2.0.0-alpha.47",
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.46"
21
+ "@galacean/engine-math": "2.0.0-alpha.47"
22
22
  },
23
23
  "devDependencies": {
24
- "@galacean/engine-design": "2.0.0-alpha.46"
24
+ "@galacean/engine-design": "2.0.0-alpha.47"
25
25
  },
26
26
  "scripts": {
27
27
  "b:types": "tsc"
@@ -54,15 +54,15 @@ export declare class InputManager {
54
54
  */
55
55
  isPointerHeldDown(pointerButton?: PointerButton): boolean;
56
56
  /**
57
- * Whether the pointer starts to be pressed down during the current frame, if there is no parameter, return whether any pointer starts to be pressed down during the current frame.
58
- * @param pointerButton - The pointerButton on a pointer device
59
- * @returns Whether the pointer starts to be pressed down during the current frame
57
+ * Whether any pointer was pressed this frame.
58
+ * @param pointerButton - The button to query; omit to include all buttons
59
+ * @returns The result remains true for the frame, even if a release also occurred
60
60
  */
61
61
  isPointerDown(pointerButton?: PointerButton): boolean;
62
62
  /**
63
- * Whether the pointer is released during the current frame, if there is no parameter, return whether any pointer released during the current frame.
64
- * @param pointerButton - The pointerButtons on a mouse device
65
- * @returns Whether the pointer is released during the current frame
63
+ * Whether any pointer was released this frame.
64
+ * @param pointerButton - The button to query; omit to include all buttons
65
+ * @returns The result remains true for the frame, even if a press also occurred
66
66
  */
67
67
  isPointerUp(pointerButton?: PointerButton): boolean;
68
68
  /**
@@ -14,7 +14,7 @@ export declare class Pointer {
14
14
  * @remarks Start from 0.
15
15
  */
16
16
  readonly id: number;
17
- /** The phase of pointer. */
17
+ /** The current phase of this pointer. */
18
18
  phase: PointerPhase;
19
19
  /** The button that triggers the pointer event. */
20
20
  button: PointerButton;
@@ -10,6 +10,7 @@ import { BlendShapeManager } from "./BlendShapeManager";
10
10
  import { VertexAttribute } from "./enums/VertexAttribute";
11
11
  /**
12
12
  * Mesh containing common vertex elements of the model.
13
+ * Define draw ranges with `addSubMesh()` and assign a material to each corresponding MeshRenderer slot.
13
14
  */
14
15
  export declare class ModelMesh extends Mesh {
15
16
  private static _tempVec0;
@@ -216,8 +217,8 @@ export declare class ModelMesh extends Mesh {
216
217
  */
217
218
  getBlendShapeName(index: number): string;
218
219
  /**
219
- * Upload data to GPU set by `setPositions()`, `setNormals()`, `setColors()`, `setBoneWeights()`, `setBoneIndices()`, `setTangents()`, `setUVs()`, `setIndices()` methods.
220
- * This method will be auto generate vertex element and vertex buffer binding if needed.
220
+ * Upload mesh data to the GPU, generating vertex elements and buffer bindings as needed.
221
+ * Bounds must be set separately for culling.
221
222
  *
222
223
  * @param releaseData - Whether to release the data cache, release data can reduce memory usage.
223
224
  */