Skip to content

Reduce web build initial size #39

Description

@AAAYaKo

The current implementation imports all shaders into Resources, including those that are not used (for example, LiquidGlass or Spline). It makes the initial load time in the web build unnecessarily longer.
Instead of including all shaders in Resources, you can use IPreprocessBuildWithReport to collect dependencies and add shaders that match components to Always Included Shaders.
https://docs.unity3d.com/6000.0/Documentation/Manual/class-GraphicsSettings.html
If the com.tlabaltoh.sdf-ui-toolkit-urp-blur package is not included, the LiquidGlass shaders should be ignored.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions