Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Assets/Plugins/Mediabox/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Calendar Versioning](https://calver.org).

## [2026.0122.0] - 2026-01-22
## [2026.122.1] - 2026-01-22
### Added
- Workaround for Turkish users (Android export)
- Added code to mitigate Android Flicker bug after pause on Mali chips

## [2023.1127.1] - 2023-11-27
### Added
Expand Down
28 changes: 28 additions & 0 deletions Assets/Plugins/Mediabox/Samples~/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,37 @@ namespace Mediabox.Samples {
/// Details to this class can be found in the base class.
/// </summary>
public class GameManager : GameManagerBase<GameDefinition> {


protected override Task OnStartGame(string contentBundleFolderPath, GameDefinition definition, string saveGamePath) {
Debug.Log($"[GameManager] Starting Game: {JsonUtility.ToJson(definition)} at contentBundleFolderPath {contentBundleFolderPath} with saveGamePath {saveGamePath}");
return Task.CompletedTask;
}

public UniversalRenderPipelineAsset pipelineAsset = null;

#if UNITY_ANDROID

// Android flicker bug resolution:
void OnApplicationPause(bool pauseStatus) {
if (pauseStatus) return;
if (Time.time == 0) return;
if (SystemInfo.graphicsDeviceType != GraphicsDeviceType.Vulkan)return;
// Optional additional restriction. So far we have only seen Adreno chips with the error,
// but a lot of posts about Mali chips having other flickering bugs, we have opted out of
// implementing this restriction in case they are also effected.
// if (!SystemInfo.graphicsDeviceName.ToLower().Contains("adreno")) return;
ReflectionCallReleaseTargets();
}

void ReflectionCallReleaseTargets() {
if (pipelineAsset == null) return;
ScriptableRenderer renderer = pipelineAsset.GetRenderer(-1);
if (renderer == null) return;
var methodInfo = typeof(ScriptableRenderer).GetMethod("ReleaseRenderTargets", BindingFlags.Instance | BindingFlags.NonPublic);
methodInfo?.Invoke(renderer, Array.Empty<object>());
}
#endif
}

}
2 changes: 1 addition & 1 deletion Assets/Plugins/Mediabox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.wonderz.wunderbox",
"version": "2026.0122.0",
"version": "2026.122.1",
"displayName": "Wunderbox Unity SDK",
"description": "This is the Unity SDK used for WonderZ GmbH's Wunderbox Content Distribution Solution",
"unity": "2019.4",
Expand Down