Update() , LateUpdate() and FixedUpdate()what is the difference between these and when i should use one of them and is it wrong to use Update() all the time?
(comments are locked)
|
|
Check out this link on Update Order this is a good answer :D
Aug 05 '11 at 05:16 AM
Ziad
but.... can i have example about when i should use one of them :)
Aug 05 '11 at 05:18 AM
Ziad
Generally, you will use Update for most operations. Such as changing transforms, or rotating items. FixedUpdate is usually used when you are calculating physics, such as applying forces to a rigidbody. i.e rigidbody.AddForce() etc. Anything that does calculations on the physcs side of things is usually used in FixedUpdate. In most other cases you will use Update().
Aug 05 '11 at 05:30 AM
Meltdown
realy thanks dude :)
Aug 05 '11 at 06:02 AM
Ziad
I suppose this page was replaced by this one: http://docs.unity3d.com/Documentation/Manual/ExecutionOrder.html
Sep 30 '12 at 08:25 PM
aldonaletto
(comments are locked)
|
