Files
Hasebe/Library/PackageCache/com.unity.addressables@42676f2a154e/Runtime/IKeyEvaluator.cs
T
2026-09-21 12:15:57 +03:00

27 lines
777 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace UnityEngine.AddressableAssets
{
/// <summary>
/// Interface for providing a runtime key to addressable assets.
/// </summary>
/// <remarks>
/// Use the runtime key as an alternative to directly referencing an object. Implementations expose a RuntimeKey and report whether it's valid.
/// </remarks>
public interface IKeyEvaluator
{
/// <summary>
/// The runtime key to use.
/// </summary>
object RuntimeKey { get; }
/// <summary>
/// Checks if the current RuntimeKey is valid.
/// </summary>
/// <returns>Whether the RuntimeKey is valid.</returns>
bool RuntimeKeyIsValid();
}
}