- Home /
Question by
davidflynn2 · Aug 19, 2014 at 02:39 PM ·
c#editorspawn
Spawn with rotation of 90 on x axis.
I have the following line spawning an item into my editor view when u click my editor button. The problems is that it is spawning with the wrong rotation on the x axis, I would like to change it so it spawns with a 90 roatation on the x axis. Here is the code using for spawning. I know that Quaternion.identiity is what has to be changed just can not find what to, to make this work.
Instantiate(prefab, spawnPoint, Quaternion.identity);
Comment
A quick way to fix this would be to change the rotation manually just after spawning it.
transform.Rotate(90, 0, 0);
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Initialising List array for use in a custom Editor 1 Answer
Game mechanic Tips 0 Answers