Raycast target : Should this be considered a target for raycasting?
출처: https://danac.tistory.com/210
using UnityEngine;
using UnityEngine.UI;
public class LobbyScene : MonoBehaviour
{
public GameObject listItemPrefab;
public Transform contents;
void Start()
{
for (int i = 0; i < 10; i++)
{
GameObject prefab = Instantiate<GameObject>(this.listItemPrefab, this.contents);
}
}