Class AssetBundleResourceProvider
Inheritance
AssetBundleResourceProvider
Syntax
public sealed class AssetBundleResourceProvider : IResourceProvider
Constructors
AssetBundleResourceProvider(AssetBundle)
Declaration
public AssetBundleResourceProvider(AssetBundle assetBundle)
Parameters
Fields
DirectorySeparatorChar
Declaration
public const char DirectorySeparatorChar = '/'
Field Value
Properties
assetBundle
Declaration
public AssetBundle assetBundle { get; }
Property Value
Methods
DebugPath(String)
Declaration
public string DebugPath(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Implements
DirectoryExists(String)
Declaration
public bool DirectoryExists(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Implements
FileExists(String)
Declaration
public bool FileExists(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Implements
GetAllFiles()
Declaration
public IEnumerable<string> GetAllFiles()
Returns
Implements
GetDirectories(String)
Declaration
public IEnumerable<string> GetDirectories(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Implements
GetFiles(String)
Declaration
public IEnumerable<string> GetFiles(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Implements
LoadAsset<T>(String)
Declaration
public T LoadAsset<T>(string path)
where T : Object
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Type Parameters
Implements
LoadTexture(String, CreateTextureOptions)
Declaration
public Texture2D LoadTexture(string path, CreateTextureOptions options)
Parameters
Returns
Implements
NormalizePath(String)
Declaration
public string NormalizePath(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Extension Methods