Class JsonStorageProxy
Helper class for loading/saving Json file resources
Inheritance
JsonStorageProxy
Assembly: FlaxEngine.dll
File: Engine/Content/Storage/JsonStorageProxy.h
Syntax
public class JsonStorageProxy
Methods
ChangeId(const StringView& path, const Guid& newId)
Changes asset ID.
Declaration
public static bool ChangeId(const StringView& path, const Guid& newId)
Parameters
StringView
path
Asset path |
Guid
newId
Asset ID to set |
Returns
bool
True if found any asset, otherwise false. |
GetAssetInfo(const StringView& path, Guid& resultId, String& resultDataTypeName)
Find asset info by path
Declaration
public static bool GetAssetInfo(const StringView& path, Guid& resultId, String& resultDataTypeName)
Parameters
StringView
path
Asset path |
Guid
resultId
Asset ID |
String
resultDataTypeName
Asset data TypeName |
Returns
bool
True if found any asset, otherwise false. |
IsValidExtension(const StringView& extension)
Determines whether the specified extension can be a json resource file.
Declaration
public static bool IsValidExtension(const StringView& extension)
Parameters
StringView
extension
The path. |
Returns
bool
True if can be a json resource extension, otherwise false. |