WuhuIslandTesting/Library/PackageCache/com.unity.addressables@1.21.12/Runtime/ResourceManager/ResourceLocations/ILocationSizeData.cs
2025-01-07 02:06:59 +01:00

20 lines
778 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityEngine.ResourceManagement.ResourceLocations
{
/// <summary>
/// Interface for computing size of loading a location.
/// </summary>
public interface ILocationSizeData
{
/// <summary>
/// Compute the numder of bytes need to download for the specified location.
/// </summary>
/// <param name="location">The location to compute the size for.</param>
/// <param name="resourceManager">The object that contains all the resource locations.</param>
/// <returns>The size in bytes of the data needed to be downloaded.</returns>
long ComputeSize(IResourceLocation location, ResourceManager resourceManager);
}
}