Skip to content

Wenrong274/DataAccessWebGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataAccessWebGL

Unity 在 WebGL 時存/讀檔案的方式,檔案是放在 IndexedDB。

IndexedDB 是有容量大小限制,所以需要注意存儲的檔案大小。

About IndexedDB

Working with quota on mobile browsers

img_1

Introduction

  • File Path

string.Format("{0}/{1}.dat", Application.persistentDataPath, FileName);

  • Save Method
DataAccess.Save(fileName, bytes);
  • Load Method
byte[] bytes = DataAccess.Load(fileName);
  • Example Scene

root\Assets\WebGL\Example\Scenes\Example


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages