Hello
I am a novice and I can’t fix the scripts that included in those Unity Technologies packs to Unity 5. Are there any where these scripts for Unity 5?
Otherwise I have to load a previous version of Unity despite it’s not right decision.
Any help will be appreciated
Certain scripts made in previous Unity versions cannot be updated. But you can try by going to Assets-Run API Updater (I think that is what it is called, its near the bottom of that menu). That will update all of the APIs to the current ones. Hope this helps!
thanks for the answer
yes, API updater runs automatically every time when I load project but alas. There is a message: “Assets/Scripts/Bomb.cs(70,45): error CS0619: UnityEngine.Component.rigidbody2D' is obsolete: Property rigidbody2D has been deprecated. Use GetComponent() instead. (UnityUpgradable)'”.
I think this is not a big deal for codders but this is a problem for me ![]()
Well, do this to convert.
//Instead of Component.rigidbody2D do this
Rigidbody2D rigidbody;
public Start()
{
//If the rigidbody is on the current object
rigidbody = GetComponent<Rigidbody2D>();
}
Solved by API ![]()
thanks to all who answered
No problem! Anytime! ![]()