x


What is the difference between Update() , LateUpdate() , FixedUpdate(), and when i should use them

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?

more ▼

asked Aug 05 '11 at 05:02 AM

Ziad gravatar image

Ziad
1.2k 8 13 31

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

1 answer: sort voted first

Check out this link on Update Order

more ▼

answered Aug 05 '11 at 05:10 AM

Meltdown gravatar image

Meltdown
5.6k 18 25 49

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)
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:

x494
x74
x21

asked: Aug 05 '11 at 05:02 AM

Seen: 2790 times

Last Updated: Sep 30 '12 at 09:05 PM