using System;using System.Linq;using System.Text;using System.Reflection;using System.Collections;using System.Collections.Generic; using UnityEngine; internal static class dfTexturePacker{ public static Rect[] PackTextures2( this Texture2D texture,…