how to instantiate as child unity
Instantiate(obj, pos, rot, parent);
how to instantiate as child unity
Instantiate(obj, pos, rot, parent);
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;
unity instantiate as child
//SetParent() method
//https://docs.unity3d.com/ScriptReference/Transform.SetParent.html
//or something like this
var myNewSmoke = Instantiate (poisonSmoke, Vector3(transform.position.x,transform.position.y, transform.position.z) , Quaternion.identity);
myNewSmoke.transform.parent = gameObject.transform;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us