@needle-tools/engine 3.2.2-alpha → 3.2.3-alpha

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.
@@ -217,6 +217,10 @@ export class SpriteRenderer extends Behaviour {
217
217
  this.gameObject.add(this._currentSprite);
218
218
  }
219
219
 
220
+ if(this._currentSprite){
221
+ this._currentSprite.layers.set(this.layer)
222
+ }
223
+
220
224
  this._spriteSheet?.update();
221
225
  }
222
226
  }
@@ -424,7 +424,7 @@ export class VideoPlayer extends Behaviour {
424
424
  this._videoElement.playbackRate = this._playbackSpeed;
425
425
  // dont open in fullscreen on ios
426
426
  this._videoElement.playsInline = true;
427
- let muted = !this._receivedInput && this.audioOutputMode !== VideoAudioOutputMode.None;
427
+ let muted = !this._receivedInput || this.audioOutputMode === VideoAudioOutputMode.None;
428
428
  if (!muted && this._muted) muted = true;
429
429
  this._videoElement.muted = muted;
430
430
  if (this.playOnAwake)