Answers for "unity instantiate prefab from editor"

C#
0

instantiate prefab unity

using UnityEngine;
using System.Collections;

public class Instantiate_example : MonoBehaviour 
{ 
  public Transform prefab;
  void Start() 
  { 
     Instantiate(prefab, new Vector3(2.0F, 0, 0), Quaternion.identity);
  } 
}
Posted by: Guest on January-10-2022

C# Answers by Framework

Browse Popular Code Answers by Language