Struct ResourceCatalogData | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    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.

    In This Article
    • Fields
      • CurrentFileFormatVersion
      • paths
      • resources
    • Methods
      • GetGUIDFromPath(String)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023