Struct ResourceCatalogData
Container for resource data.
Namespace: Unity.Entities.Hybrid
Syntax
public struct ResourceCatalogData
Fields
CurrentFileFormatVersion
File format needs to change anytime the data layout for this class changes.
Declaration
public static readonly int CurrentFileFormatVersion
Field Value
Type | Description |
---|---|
Int32 |
paths
Path information for resources. This is separate to keep the resources data streamlined as using paths is slow.
Declaration
public BlobArray<BlobString> paths
Field Value
Type | Description |
---|---|
BlobArray<BlobString> |
resources
The resource data.
Declaration
public BlobArray<ResourceMetaData> resources
Field Value
Type | Description |
---|---|
BlobArray<ResourceMetaData> |
Methods
GetGUIDFromPath(String)
Slow path to lookup guid from a path. This first checks the passed in path then just the filename, then the lowercase version of the filename.
Declaration
public Hash128 GetGUIDFromPath(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The resource path. |
Returns
Type | Description |
---|---|
Hash128 | The guid for the resource. |