Array of Tranform type editable form inspector,Array of Transform editable from inspector

So i have the following code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;



public class ItemBox : MonoBehaviour
{   
    public enum ItemType
    {
        Pistol,
        AK47,
        UMP45
    }
    [Header("Values")]
    [SerializeField] ItemType itemtype;
    [SerializeField] int itemAmount;
    [SerializeField] GameObject Prefab;
    [SerializeField] Transform[] PrefabTransform;
    public ItemType Type { get { return itemtype; } }
    public int Amount { get { return itemAmount; } }


    void Start()
    {
        for(int i = 0; i < itemAmount; i++)
        {   
            Instantiate(Prefab,PrefabTransform_.position, PrefabTransform*.rotation);*_

Prefab.transform.SetParent(transform);
Prefab.gameObject.AddComponent();
}
}
void Update()
{

}
}
[137144-capture2.png|137144]_
and in the inspector i am not able to edit the transform directly
i would like to be able to edit each value of rotation ,position of the array elements
in the inspector
images attached for more clarity
alt text
_

,

For what you ask you’ll need a custom editor that shows the Inspector for each Transform in the array. It’s not hard, but it’s not trivial, so you’ll have to do research and trial and error to get it right.

Also, a warning for the code you showed: Instantiate returns an instance, you should set the parent of that instance. You’re currently setting the parent to the Prefab itself, which is not the object on the scene. Check the second and third examples of the Instantiate docs: Unity - Scripting API: Object.Instantiate

thank you very much!
In fact the ItemBox should be named ItemBoxes because it is attached to a gameobject
parent that spawns the itemboxes by the transfrorm array