Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity instantiate

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: #unity #instantiate
ADD COMMENT
Topic
Name
9+8 =