46 lines
1.7 KiB
C#
46 lines
1.7 KiB
C#
|
using UnityEngine;
|
||
|
|
||
|
public static class AssetConst
|
||
|
{
|
||
|
public const string luaExtension = ".txt";
|
||
|
public const string textExtension = ".txt";
|
||
|
public const string bytesExtension = ".bytes";
|
||
|
public const string sceneExtension = ".unity";
|
||
|
public const string prefabExtension = ".prefab";
|
||
|
public const string modelExtension = ".fbx";
|
||
|
public const string materialExtension = ".mat";
|
||
|
public const string shaderExtension = ".shader";
|
||
|
public const string audioExtension = ".mp3";
|
||
|
public const string lightmapExtension = ".exr";
|
||
|
public const string fontSettingsExtension = ".fontsettings";
|
||
|
|
||
|
public const string fontExtension = ".ttf";
|
||
|
public const string assetExtension = ".asset";
|
||
|
public const string metaExtension = ".meta";
|
||
|
public const string bundleVariant = ".common";
|
||
|
|
||
|
public const string versionFile = "AssetVersionData";
|
||
|
public const string pathFile = "AssetPathData";
|
||
|
public const string nonInternalHeader = "Assets/";
|
||
|
public const string assetPathDataPath = "CSText";
|
||
|
public const string csAssetHeader = nonInternalHeader + "CSAssets/";
|
||
|
public const string currentVersionFile = "CSText/CurrentVersion";
|
||
|
|
||
|
public static string streamingAssetsPath
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return Application.streamingAssetsPath;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static string persistentDataPath
|
||
|
{
|
||
|
get { return Application.persistentDataPath; }
|
||
|
}
|
||
|
|
||
|
public static string GetPersistBundle(string bundle)
|
||
|
{
|
||
|
return persistentDataPath.Open(bundle);
|
||
|
}
|
||
|
}
|