Skip to content

Conversation

@SeRazon
Copy link

@SeRazon SeRazon commented Dec 9, 2025

This pull request introduces a new direct asset loading API for WebGL builds, enabling charts, audio, and cover images to be loaded directly from memory instead of via URL downloads. It also updates several Unity packages and rendering pipeline settings to improve compatibility and visual fidelity. The most significant changes can be grouped into two main areas: new WebGL asset loading features and Unity project/package updates.

WebGL Direct Asset Loading Features

  • Added support for direct asset storage and retrieval in Assets/Plugins/WebGL/Helper.jslib, including new fields (chartJson, audioData, coverData) and methods for managing byte arrays and strings, allowing assets to be passed directly from the API. [1] [2] [3]
  • Exposed new native functions in Assets/Scripts/WebGLHelper.cs for checking and retrieving direct assets, including wrappers for byte array handling. [1] [2]
  • Updated Assets/Scripts/StartPlay.cs to auto-load assets via the new API if available, with a dedicated coroutine (ChartLoaderFromDirectAPI) for loading chart, audio, and cover data directly from memory, including error handling and UI updates. [1] [2] [3]

Unity Project and Rendering Pipeline Updates

  • Upgraded Unity packages in Packages/manifest.json to newer versions, including render-pipelines.universal, inputsystem, test-framework, timeline, and others for improved stability and features.
  • Updated the Unity Editor version in ProjectSettings/ProjectVersion.txt to 6000.0.59f2.
  • Enhanced Universal Render Pipeline settings in Assets/Settings/UniversalRP.asset and Assets/UniversalRenderPipelineGlobalSettings.asset, adding new shader, texture, and material references for improved rendering effects and compatibility. [1] [2] [3] [4] [5]
  • Added an override flag for shader variant limits in ProjectSettings/ShaderGraphSettings.asset for better control of shader compilation.

Copilot AI and others added 9 commits December 9, 2025 12:06
Co-authored-by: SeRazon <40968037+SeRazon@users.noreply.github.com>
Co-authored-by: SeRazon <40968037+SeRazon@users.noreply.github.com>
Co-authored-by: SeRazon <40968037+SeRazon@users.noreply.github.com>
Co-authored-by: SeRazon <40968037+SeRazon@users.noreply.github.com>
Co-authored-by: SeRazon <40968037+SeRazon@users.noreply.github.com>
Add WebGL API for direct asset loading without ZIP packaging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant