Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
  } 
}
Source by vionixstudio.com #
 
PREVIOUS NEXT
Tagged: #instantiate #prefab #unity
ADD COMMENT
Topic
Name
7+3 =