hi im trying to rotate a prefab on X 90 but its not doing it ive tried using this
but its not doing it my object is a piece of tetris looking like this watching it from top
and i want it to look like this
i have also tried modifying the prefab and i can modify scale but not rotation any help plz?
asked Apr 30 '11 at 08:10 PM
Make sure you understand the difference between a prefab and a game object that's been instantiated (cloned) from that prefab.
With the above code, it's unlikely that you're actually 'rotating a prefab'. If however that script is attached to the prefab, then any game object cloned from the prefab should indeed be rotated 90 degrees as soon as its Start() function runs.
Keep in mind though that Start() only runs once, sometime before Update() is called for the first time. As such, in this case it'd probably make more sense simply to instantiate the game object with the desired orientation (rather than modifying it after the fact in the Start() function).
answered Apr 30 '11 at 08:19 PM
seems like initializing the rotation in 0 before implementing it on the Start did the job got no idea why but it worked tyvm for the help anyways
answered Apr 30 '11 at 08:45 PM