Answers for "unity instantiate prefab as child"

C#
7

unity instantiate prefab

Instantiate(cube, Vector3 (x, y, 0), Quaternion.identity);
Posted by: Guest on February-24-2020
0

unity instantiate prefab as child

//Instantiate Object
     GameObject go = Instantiate(A, new Vector3 (0,0,0), Quaternion.identity) as GameObject;
     // Tranform as child
     go.transform.parent = GameObject.Find("Stage Scroll").transform;
Posted by: Guest on March-15-2020
1

unity create prefab with child

Add the original prefab into the scene, add the new prefab as a child to it, 
then drag the original prefab back onto the prefab in the project view (or just
click Apply in the inspector)
Probably want to delete it from the scene after that
Posted by: Guest on January-20-2021

Code answers related to "unity instantiate prefab as child"

C# Answers by Framework

Browse Popular Code Answers by Language