@needle-tools/engine 2.35.3-pre → 2.35.4-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,10 @@ 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.4-pre] - 2022-10-23
8
+ - Change: Renderer ``material`` is now ``sharedMaterial`` to make it more clear for Unity devs that the material is not being cloned when accessed
9
+ - Fix: When not specifying any explicit networking backend for glitch deployment it now falls back to the current glitch instance for networking
10
+
7
11
  ## [2.35.3-pre] - 2022-10-21
8
12
  - Add: Screenshare component ``share`` method now takes optional options to configure device and MediaStreamConstraints for starting the stream
9
13
  - Fix: WebXR should show EnterVR button when enabled in Unity
@@ -820,6 +820,10 @@ declare module "engine/engine_networking_peer" {
820
820
  private trySetupClient;
821
821
  }
822
822
  }
823
+ declare module "engine/engine_networking_utils" {
824
+ export function isLocalNetwork(hostname?: string): boolean;
825
+ export function isHostedOnGlitch(): boolean;
826
+ }
823
827
  declare module "engine/engine_networking" {
824
828
  import { Context } from "engine/engine_setup";
825
829
  import * as flatbuffers from 'flatbuffers';
@@ -3138,8 +3142,12 @@ declare module "engine-components/Renderer" {
3138
3142
  renderOrder: number[] | undefined;
3139
3143
  allowOcclusionWhenDynamic: boolean;
3140
3144
  private _lightmaps?;
3141
- get mesh(): Mesh | undefined;
3145
+ get sharedMesh(): Mesh | undefined;
3146
+ get sharedMaterial(): THREE.Material;
3147
+ set sharedMaterial(mat: THREE.Material);
3148
+ /**@deprecated please use sharedMaterial */
3142
3149
  get material(): THREE.Material;
3150
+ /**@deprecated please use sharedMaterial */
3143
3151
  set material(mat: THREE.Material);
3144
3152
  private _sharedMaterials;
3145
3153
  get sharedMaterials(): SharedMaterialArray;
@@ -3543,9 +3551,6 @@ declare module "engine-components/DragControls" {
3543
3551
  private onDragEnd;
3544
3552
  }
3545
3553
  }
3546
- declare module "engine/engine_networking_utils" {
3547
- export function isLocalNetwork(hostname?: string): boolean;
3548
- }
3549
3554
  declare module "engine-components/Networking" {
3550
3555
  import { INetworkingWebsocketUrlProvider } from "engine/engine_networking";
3551
3556
  import { Behaviour } from "engine-components/Component";