testss
This commit is contained in:
@@ -0,0 +1 @@
|
||||
using System.Runtime.CompilerServices;
|
@@ -0,0 +1,5 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly: InternalsVisibleTo("Unity.2D.Animation.Runtime")]
|
||||
[assembly: InternalsVisibleTo("Unity.2D.Animation.Editor")]
|
||||
[assembly: InternalsVisibleTo("Unity.2D.IK.Editor")]
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Unity.InternalAPIEngineBridge.001",
|
||||
"references": [],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": []
|
||||
}
|
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
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);
|
||||
}
|
||||
|
||||
public static Vector2 GUIUnclip(Vector2 v)
|
||||
{
|
||||
return GUIClip.Unclip(v);
|
||||
}
|
||||
|
||||
public static Rect GetGUIClipTopMostRect()
|
||||
{
|
||||
return GUIClip.topmostRect;
|
||||
}
|
||||
|
||||
public static Rect GetGUIClipTopRect()
|
||||
{
|
||||
return GUIClip.GetTopRect();
|
||||
}
|
||||
|
||||
public static void SetBatchDeformableBufferAndLocalAABBArray(SpriteRenderer[] spriteRenderers, NativeArray<IntPtr> buffers, NativeArray<int> bufferSizes, NativeArray<Bounds> bounds)
|
||||
{
|
||||
SpriteRendererDataAccessExtensions.SetBatchDeformableBufferAndLocalAABBArray(spriteRenderers, buffers, bufferSizes, bounds);
|
||||
}
|
||||
|
||||
#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
|
||||
}
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Unity.2D.Common.Runtime",
|
||||
"references": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": []
|
||||
}
|
Reference in New Issue
Block a user