hola, que tal gente.me podrían ayudar y decirme por que es que este código no funciona
using UnityEngine;gracias
using System.Collections;
using System.Collections.Generic;
public class inventario : MonoBehaviour {
// Usa para crear los slot
public GameObject slots;
int x=-114;
int y=83;
void Start () {
for (int i=0; i<3; i++)
{
for (int j=0; j<3; j++)
{
// Usa para crear los slot sin que sea necesario tener un prefab y le asigna las coordenadas
GameObject slot=(GameObject)Instantiate(slots);
slot.transform.parent=this.gameObject.transform;
slot.GetComponents<RectTransform>().localposition = new Vector3(x,y,0);
}
}
}
}