MyBook/Library/PackageCache/com.unity.2d.psdimporter@6.0.9/Editor/Pipeline.cs
2025-03-22 15:17:36 +08:00

21 lines
823 B
C#

using Unity.Collections;
using UnityEditor.U2D.Common;
using UnityEngine;
namespace UnityEditor.U2D.PSD
{
//[CreateAssetMenu(fileName = "Pipeline.asset", menuName = "2D/PSDImporter Pipeline")]
class Pipeline : ScriptableObject
{
void PackImage(NativeArray<Color32>[] buffers,
int[] width, int[] height, int padding,
uint spriteSizeExpand,
out NativeArray<Color32> outPackedBuffer,
out int outPackedBufferWidth, out int outPackedBufferHeight,
out RectInt[] outPackedRect, out Vector2Int[] outUVTransform,
bool requireSquarePOT)
{
ImagePacker.Pack(buffers, width, height, padding, out outPackedBuffer, out outPackedBufferWidth, out outPackedBufferHeight, out outPackedRect, out outUVTransform);
}
}
}