@needle-tools/engine 2.35.1-pre → 2.35.2-pre

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/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to this package will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.35.2-pre] - 2022-10-20
8
+ - Add ``Renderer.mesh`` getter property
9
+ - Change: ``Renderer.material`` now returns first entry in ``sharedMaterials`` array so it automatically works in cases where a Renderer is actually a multi-material object
10
+ - Change: warn when trying to access components using string name instead of type
11
+ - Change: update needle gltf-transform-extensions to 0.6.2
12
+ - Fix: remove log from UIRaycastUtil
13
+ - Fix: move TypeStore import in builtin engine again to not break cases where ``import @needle-engine`` was never used
14
+ - Fix: React3Fiber template and AR overlay container access when using react
15
+
7
16
  ## [2.35.1-pre] - 2022-10-19
8
17
  - Change: unify component access methods, first argument is now always the object with the component type as second argument
9
18
  - Fix physics collision events throwing caused by refactoring in last version
@@ -2984,7 +2984,7 @@ declare module "engine/extensions/NEEDLE_deferred_texture" {
2984
2984
  declare module "engine-components/Renderer" {
2985
2985
  import { Behaviour } from "engine-components/Component";
2986
2986
  import * as THREE from "three";
2987
- import { Texture } from "three";
2987
+ import { Mesh, Texture } from "three";
2988
2988
  import { IRenderer } from "engine/engine_types";
2989
2989
  export { InstancingUtil } from "engine/engine_instancing";
2990
2990
  export class FieldWithDefault {
@@ -3015,6 +3015,7 @@ declare module "engine-components/Renderer" {
3015
3015
  renderOrder: number[] | undefined;
3016
3016
  allowOcclusionWhenDynamic: boolean;
3017
3017
  private _lightmaps?;
3018
+ get mesh(): Mesh | undefined;
3018
3019
  get material(): THREE.Material;
3019
3020
  set material(mat: THREE.Material);
3020
3021
  private _sharedMaterials;
@@ -5228,7 +5229,6 @@ declare module "engine-components/codegen/components" {
5228
5229
  declare module "needle-engine" {
5229
5230
  import "engine/engine_element";
5230
5231
  import "engine/engine_setup";
5231
- import "./engine/codegen/register_types";
5232
5232
  export { GameObject, Behaviour } from "engine-components/Component";
5233
5233
  export { serializeable } from "engine/engine_serialization_decorator";
5234
5234
  export { Collision } from "engine/engine_types";
@@ -5299,6 +5299,7 @@ declare module "engine/extensions/extensions" {
5299
5299
  export function registerExtensions(loader: GLTFLoader, context: Context, sourceId: SourceIdentifier): void;
5300
5300
  }
5301
5301
  declare module "engine/engine_gltf_builtin_components" {
5302
+ import "./codegen/register_types";
5302
5303
  import { Component } from "engine-components/Component";
5303
5304
  import { Context } from "engine/engine_setup";
5304
5305
  import { SerializationContext } from "engine/engine_serialization_core";