Asset Bundle Patterns: JSON


Right now I’m trying to come up with a clever way to handle google’s phone number validation library (a whopping 400kb, 120kb alternative)

I was thinking about removing the json that includes all the country codes and requesting it only when we need it via fetch.

I was also thinking, why bother making a fork and handling all these changes when I could potentially just cache the json file using asset bundle patterns.

I know images are the only things supported right now with fonts, videos to come but can we add JSON to that list as well?


@janic can you weigh in as to whether that’ll be possible? I would assume that we’d want to support any arbitrary file type but I’m not familiar with any technical limitations.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.