Opening my solution in MonoDevelop shows 4 assemblies.
Assembly-C Sharp-firstpass <---
What are these first pass assemblies? Is it normal to see 4 assemblies or should they not be there?
Scripts which are in the "Standard Assets" folder (or the mobile version of it) get compiled into the firstpass assemblies.
It's some horrible mess due to Unity's way to compile different languages and where compile order is important. I.e. in order for UnityScripts to access scripts written in C#, C# has to be compiled before UnityScript are compiled. This in turn means, you can not access UnityScript from C# w/o doing some hacks (i.e. moving UnityScript scripts into Standard Assets folder).
The compile order is something like
C# firstpass editor
Unityscript firstpass editor
Dunno where boo belongs there
I have a C# file in the first pass, and then another one in the regular pass. However When I try to get access to the secondpass object from the first one it complains that it doesn't know the definition.
It's kind a nuts, and I haven' figured out how to fix it. I created a circular dependency by add reference to the secondpass to the first, so that's out.
The compilation order is here:
Those four steps correspond to the four separate projects in your solution.
The short answer is you can't. First pass scripts can't access second pass scripts. Is there any reason you need to have the first one in the first pass?I have a C# file in the first pass, and then another one in the regular pass. However When I try to get access to the secondpass object from the first one it complains that it doesn't know the definition.