BaseCreator.cs CS1622

Recommended Unity Version

We recommend using a stable version of Unity instead of the latest version as they are released. We use 5.6 for developing the kit and recommend you use the same version. We'll be working with the newer versions of Unity once they've had some time to go through bug fixes and improvements, rather than upgrading the kit immediately.

📘

Download Unity 5.6

Get Unity 5.6 here: https://unity3d.com/get-unity/download/archive

Unity 5.5 may give you an error message on start that we've included below:

Unity 5.5 BaseCreator.cs CS1622 Error

If you're using the new Unity 5.5 version with the Complete Strategy Kit, you may receive this error on BaseCreator.cs:

2332

Unity 5.5 BaseCreator.cs CS1622 Error example. Click to view closer.

Assets/Scripts/Creators/BaseCreator.cs(1753,4): error CS1622: 
Cannot return a value from iterators. Use the yield return statement to return a value, or yield break to end the iteration

You can comment out the following lines in this function -- see image below -- to remove the error message. The next release of the new kit will include this modification, but for now we've created this documentation page if you're already using the new version of Unity 5.5.

1280

Fixed BaseCreator.cs for Unity 5.5. Click to view closer