Unity Instantiate Prefab || Unity 3D Tutorial Spawning Prefabs

preview_player
Показать описание
Hi
In this Unity tutorial, I will show you how to Instantiate Prefab in Unity 3D

Here is the script

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

public class Spawner : MonoBehaviour
{

public float repeatRate;
public GameObject ballPrefab;

void Start(){
StartCoroutine(Spawner());
}

public IEnumerator Spawner(){
bool flag = true;

while(flag){
yield return new WaitForSeconds(repeatRate);
}
}
}

▼ SUBSCRIBE OUR CHANNEL▼

Please

Like

Share

Subscribe

Thank You So Much.
Рекомендации по теме
Комментарии
Автор

Bro can u make a tutorial on game called merged matching game where we have to drag sprites into grid please

rathanhv
welcome to shbcf.ru