Persatuan Buat GameObject dari Prefab dalam skrip
using UnityEngine;
public class example : MonoBehaviour
{
public GameObject prefab;
// Start is called before the first frame update
void Start()
{
Instantiate(prefab, new Vector3(0, 0, 0), Quaternion.identity);
}
}
RyanGar46