fr.jeanf.universal.player 0.8.27 → 0.8.28

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.
@@ -473,6 +473,18 @@ namespace jeanf.universalplayer
473
473
  _currentFadeType = fadeType;
474
474
  }
475
475
 
476
+ public static void SetVolumeWeight(float weight)
477
+ {
478
+ if (staticPostProcessVolume == null)
479
+ {
480
+ if (_isDebugSTATIC) Debug.LogWarning("FadeMask: staticPostProcessVolume is null. Cannot set volume weight.");
481
+ return;
482
+ }
483
+
484
+ staticPostProcessVolume.weight = weight;
485
+ if (_isDebugSTATIC) Debug.Log($"FadeMask: Volume weight set directly to {weight}");
486
+ }
487
+
476
488
  public static void SwitchFadeState()
477
489
  {
478
490
  _isFaded = !_isFaded;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fr.jeanf.universal.player",
3
3
 
4
- "version": "0.8.27",
4
+ "version": "0.8.28",
5
5
 
6
6
  "displayName": "Universal Player",
7
7
  "description": "This package contains a universal player working in URP & HDRP for Mouse+Keyboard or VR",