Answer the question
In order to leave comments, you need to log in
Why is the object initialized in the wrong place?
Variables.pointW1 = "A";
W1.destination = GameObject.Find( Variables.pointW1 ).transform.position;
inst = Instantiate(GT, W1.destination , Quaternion.identity) as GameObject;
inst.transform.SetParent(canvas.transform, false);
Essentially, the object should appear in the same place as the "A" object, but it appears in a different place. What is the reason, and how to rewrite the code so that the object is initialized in the right place?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question