Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

instantiate unity 2d in parent

   var myNewSmoke = Instantiate (poisonSmoke, Vector3(transform.position.x,transform.position.y, transform.position.z) , Quaternion.identity);
  myNewSmoke.transform.parent = gameObject.transform;
 
PREVIOUS NEXT
Tagged: #instantiate #unity #parent
ADD COMMENT
Topic
Name
9+3 =