Skip to content

Instantly share code, notes, and snippets.

View rimagahwa's full-sized avatar
🎯
Focusing

Rima Alghanim rimagahwa

🎯
Focusing
  • RimaWorks
  • Riyadh, Saudi Arabia
View GitHub Profile
@amowu
amowu / GetStreamingAssetsPath.cs
Created December 25, 2013 08:24
Get Unity StreamingAssets file path with Android and iOS.
// Put your file to "YOUR_UNITY_PROJ/Assets/StreamingAssets"
// example: "YOUR_UNITY_PROJ/Assets/StreamingAssets/db.bytes"
string dbPath = "";
if (Application.platform == RuntimePlatform.Android)
{
// Android
string oriPath = System.IO.Path.Combine(Application.streamingAssetsPath, "db.bytes");