Luca Fusi Sound Design | Implementation

9May/140

WUIS Worklog FRI 5/9

It's Friday! Slow day full of other stuff happening. I should really temporarily rename this endeavor to something that doesn't mention Wwise...

Today I Learned:

  • About the Awake and Start functions. One's called every time the project launches, whether its containing script is enabled (checkboxed) or not. The other's called afterwards and only if the parent script's enabled. Useful tools for initializing variables, values, game states, etc. I was pleased to be able to write the code provided by this tutorial without having to look at it beforehand--but then, it was pretty easy!
  • Learned the difference between the Update() and FixedUpdate() functions--former executes once per frame, but frames can take varying amounts of time! Latter is more consistent and gets its timing from the physics engine or something.
  • The differences between Input.GetKeyDown() (returns true if a key's down, but only for the first frame in which this function's executed) and Input.GetKey(), which can retrigger.

Tried my hand at some off-the-rails coding to figure out some pay rate conversion stuff. I was all excited to use structs, proper data types etc. and make 'em public--then be able to edit them from Unity's Inspector view and check the results out in realtime!--but it turns out that you can't get structs flagged / exposed to show up in the Inspector view, even if they're public. Drag.

Up Tomorrow:

  • More tutorials--unless it's nice out, then I'm going outside.