public prefab unity code example
Example 1: Unity C# instantiate prefab
Instantiate(myPrefab, new Vector3(0, 0, 0), Quaternion.identity);
Example 2: Instantiate c#
class Program
{
static void Main()
{
Employee employee1 = new Employee();
Employee employee2;
employee2 = new Employee();
IncreaseSalary(employee1);
}
}
Example 3: unity instantiate prefab
Instantiate(cube, Vector3 (x, y, 0), Quaternion.identity);