using UnityEngine;using UnityEditor;public class tk2dTmpBatchChanger{ [MenuItem("2D Toolkit/Unsupported/Batch Change Collider")] public static void DoChange() { if (Selection.activeGameObject && Selection.activeGameObject.GetComponent<tk2dSpriteCollection>()) { var spriteCollection = Selection.activeGameObject.GetComponent<tk2dSpriteCollection>(); foreach (var param in spriteCollection.textureParams) { param.colliderType = tk2dSpriteCollectionDefinition.ColliderType.BoxTrimmed; } Debug.Log("Done"); } }}