7502018d20
There is an asset in the store I grabbed. the coding is WAY above my head, I got about half of it and integrated and adapted what I can to it. im going as far as I can with it and ill come back in a few month when I understand t better.
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.ResourceManagement.ResourceLocations;
|
|
|
|
namespace UnityEngine.AddressableAssets.ResourceLocators
|
|
{
|
|
/// <summary>
|
|
/// Interface used by the Addressables system to find the locations of a given key.
|
|
/// </summary>
|
|
public interface IResourceLocator
|
|
{
|
|
/// <summary>
|
|
/// The id for this locator.
|
|
/// </summary>
|
|
string LocatorId { get; }
|
|
/// <summary>
|
|
/// The keys defined by this locator.
|
|
/// </summary>
|
|
IEnumerable<object> Keys { get; }
|
|
/// <summary>
|
|
/// Retrieve the locations from a specified key.
|
|
/// </summary>
|
|
/// <param name="key">The key to use.</param>
|
|
/// <param name="type">The resource type.</param>
|
|
/// <param name="locations">The resulting set of locations for the key.</param>
|
|
/// <returns>True if any locations were found with the specified key.</returns>
|
|
bool Locate(object key, Type type, out IList<IResourceLocation> locations);
|
|
}
|
|
}
|