Question by
Herekus · Mar 06, 2016 at 08:00 AM ·
gameobjectinstantiatetransform
Why it is must be a Transform type and not a GameObject type?
Code:
Transform clone = Instantiate (shieldMesh, transform.position, transform.rotation) as Transform;
clone.transform.parent = this.gameObject.transform;
GameObject type doesn't work.
Comment
Your answer
Follow this Question
Related Questions
Instantiated objects can't convert to GameObjects 0 Answers
Canon Ball shooting with Instiate 1 Answer
Parenting Instancing and Prefab issues 0 Answers