You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns an already converted Unity component from the list, or converts a Unity component to its bridge counterpart, adds it to the list, and returns it.
/// </summary>
public static TConversion Upsert<T, TConversion>(T unityObject) where T : UnityObject where TConversion : IBaseEntity => unityObject != null && UnityMatchObject.FabricAliases.TryGetValue(unityObject.GetType(), out Func<UnityObject, IBaseEntity> factory) ? (TConversion)_objects.GetValue(unityObject, obj => factory((T)obj)) : default;
/// <summary>
/// Removes the converted Unity component from the list, if it is there.
/// </summary>
public static void Remove<T>(UnityBaseEntity<T> analog) where T : UnityObject