x


Object rotates back to original position when playtesting

Fine-looking in edit mode As you can see, the object is perfectly aligned with the cube, during Edit mode. But when i click the Play button, it reverts to the original import state: rotated im Play mode I want my character to keep in the rotation 270,0,0, and not flip to that weird number. I tried reimporting and deleting/replacing my prefab, with no success (If that helps, the parent is rotated 270 degrees in Y axis, and is not linked to anything else). I have a clean scene, no scripts or nothing (yet), i can't figure what's going on!

more ▼

asked Mar 05 '12 at 11:41 PM

Kroltan gravatar image

Kroltan
74 8 10 14

(comments are locked)
10|3000 characters needed characters left

6 answers: sort voted first

Somehow Unity re-added the Animation Component and it was causing this error (because of the way i imported it from Blender). Thanks for all answerers.

more ▼

answered Mar 08 '12 at 12:19 AM

Kroltan gravatar image

Kroltan
74 8 10 14

(comments are locked)
10|3000 characters needed characters left

If you don't have an animation component on your object, did you try applying your rotation modifications to the prefab?

more ▼

answered Mar 06 '12 at 03:03 AM

aVittone gravatar image

aVittone
16 1 1 2

I tried deleting and remaking the prefab all again. No success.

Mar 06 '12 at 06:56 PM Kroltan
(comments are locked)
10|3000 characters needed characters left

Make sure to only make modifications when preview mode is disable. All modifications made in preview mode are discarded after it.

more ▼

answered Mar 06 '12 at 11:28 PM

paulocoghi gravatar image

paulocoghi
1

(comments are locked)
10|3000 characters needed characters left

I noticed my Object jumps to an X Rotation of 270 degrees, but only in animated

Cheap and dirty workaround:

  • rotate the object 270 degrees on X axis so that the orientation doesn't change upon animation
  • make the object child of an empty, then transform the empty to your desired rotation/position
more ▼

answered Jul 12 '12 at 09:33 AM

papalagi gravatar image

papalagi
1

(comments are locked)
10|3000 characters needed characters left

it can be happening because of for reasons u may have java script component/function that get executed when u play run and finally modification of ur xyz rotation occure

more ▼

answered Mar 22 at 08:40 AM

Abhinash kumar gravatar image

Abhinash kumar
1 2 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2248
x699
x230
x171
x31

asked: Mar 05 '12 at 11:41 PM

Seen: 1335 times

Last Updated: Mar 22 at 08:40 AM