I recently purchased the ‘Learning C# by developing games with Unity3d’ ebook. I have got to a chapter that deals with ‘creating a state machine’ and have hit a brickwall.
Upon opening monodevelop to edit my script, I cannot see ‘Assets’ in my solution window, which should, according to the book, be below the ‘References’ folder. Beneath the ‘References’ folder in my solution window is simply the two folders i created in the editor; ‘Code’ and ‘Scripts’ and the one i created in monodevelop called ‘States’ nested in ‘Scripts’.
The script i am following requires the line ‘namespace Assets.Code.States’ and, unsurprisingly, when i try and execute it it throws up an error saying that namespace Assets could not be found.
In the Unity Editor my folders ‘Code’ and ‘Scripts’ are nested within ‘Assets’ as one would expect. ‘Assets’ just simply does not appear in the solution window of Monodevelop. If i import a package (the book does not say any are needed) it also displays as normal in the solution window.
I am 100% certain my code is as it appears in the book.
I have made sure my preferences in Unity are set up with monodevelop as my External editor like the ‘Known Issues’ thread suggests but this didn’t help. Being a novice i tried simply removing the reference to ‘Assets’ in the line of code leaving only ‘namespace Code.States’ but this threw up an error saying ‘Code’ could not be found which left me completely stumped.
I could post the code if required but i’m not sure it’s the issue. I have seen similar topics discussed with regards to namespace and solution window but they are simply far beyond my very limited knowledge. I also could not find ‘namespace’ in the Unity script reference.