Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity setparent

public GameObject child;    
public GameObject parent;

child.transform.SetParent(parent.transform);

child.transform.SetParent(parent.transform, false);
 
PREVIOUS NEXT
Tagged: #unity #setparent
ADD COMMENT
Topic
Name
9+1 =