- Home /
Instantiate VS placement in editor
Hello there!
I am in the middle of making character editor of a sort, but I ran into problem with instantiating.
Our artists have created apparel for characters which are neatly snapped in place when dragged straight from project view to correct bone/dummy in hierarchy view.
My problem is, that i seem to be unable to repeat this uniformity while instantiating the very same gameobjects to exactly same dummies.
Some of the objects are placed correctly, while others appear few units in wrong position and with wrong rotation.
I think that there might be some silly going on with my instantiating:
headPieceInstance = Instantiate(headPieceArray[currentHeadPiece], headPieceTarget.transform.position, headPieceTarget.transform.rotation) as GameObject;
I can submit more complete snips of code if it seems that this line is not the likely to cause of my problems.
Thank you!
Your answer
![](https://koobas.hobune.stream/wayback/20220613073705im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Instantiating objects at position 1 Answer
Objects Instantiating at wrong position 3 Answers
Dropping an object behind player in respect to rotation,How to drop an object behind the player 1 Answer
transform position and rotation of instantiated object 1 Answer
Shooting with variable vector3 0 Answers