- Home /
Question by
Xadnir_The_Ever_Living · Jan 12, 2020 at 07:46 PM ·
2derror2d gamesprite rendererplay mode
cant play game because of InternalEngineBridge error
so i'm very new to unity, even if i have been using it for a couple months. and i have been developing a meh game. everything was fine, until i tried to play the game i had made(in the unity editor) and then it spat out this error:
.
Library\PackageCache\com.unity.2d.common@2.0.2\Runtime\InternalBridge\InternalEngineBridge.cs(15,48): error CS1503: Argument 2: cannot convert from 'Unity.Collections.NativeArray' to 'Unity.Collections.NativeArray'
.
an i had no idea what this was. so i double clicked on it. and i found the line that is causing the error. It is line 15 of the InternalEngineBridge.cs script.
using UnityEngine.UIElements;
using Unity.Collections;
namespace UnityEngine.U2D.Common
{
internal static class InternalEngineBridge
{
public static void SetLocalAABB(SpriteRenderer spriteRenderer, Bounds aabb)
{
spriteRenderer.SetLocalAABB(aabb);
}
public static void SetDeformableBuffer(SpriteRenderer spriteRenderer, NativeArray<byte> src)
{
spriteRenderer.SetDeformableBuffer(src); //here is the line that caused the error.
}
public static Vector2 GUIUnclip(Vector2 v)
{
return GUIClip.Unclip(v);
}
public static Rect GetGUIClipTopMostRect()
{
return GUIClip.topmostRect;
}
public static Rect GetGUIClipTopRect()
{
return GUIClip.GetTopRect();
}
#if UNITY_EDITOR
public static void SetLocalEulerHint(Transform t)
{
t.SetLocalEulerHint(t.GetLocalEulerAngles(t.rotationOrder));
}
public static bool IsChecked(this VisualElement element)
{
return (element.pseudoStates & PseudoStates.Checked) == PseudoStates.Checked;
}
public static void SetChecked(this VisualElement element, bool isChecked)
{
if (isChecked)
{
element.pseudoStates |= PseudoStates.Checked;
}
else
{
element.pseudoStates &= ~PseudoStates.Checked;
}
}
#endif
}
}
and it sucs alot. does anybody know what to do?
Comment