Reply To: Unity 5 Support

Home Forums Books Unity 3D UI Essentials Unity 5 Support Reply To: Unity 5 Support


Phew, been a while since I updated this post. But I’m happy to confirm there are no issues raised through the use of the UI and the code in the book.

The only tweak that is needed is with the roll-a-ball sample in Ch5, since this was a basic port / upgrade of the original Unity example for Unity 5.

The code auto-upgrade process for Unity 5 will replace the following in the PlayerController script.
rigidbody.AddForce(movement * Speed * Time.deltaTime);

GetComponent().AddForce(movement * Speed * Time.deltaTime);

This is simply part of the path of Unity removing all the shortcuts to dependent MonoBehaviour’s (except Transform) as I detailed in the following blog post:

Simon (Darkside) Jackson