Working on Unity 4.1.2f?
OK, please choose proposes.
1. Check if there is any mistake in source code
The source code Check in yourself, or show me copy&paste or screenshot.
Please make sure that there is no difference to that of the repository.
2. Try a new version of Unity
I'm using 4.1.5f1, the error will not come out.
Please try if you can upgrade.
3. Try a old version of MMD for Unity
Please try r145.
If show same error, try r144. r143, r142, ....
Thanks
Maybe, I have a mistake. I don't grouped "using UnityEditor;" in UNITY_EDITOR directive. I have solved this problem at r147.
Please, run r147 on your environment.
I'm using Unity 4.1.2f, window7 x64, MikuMikuDance for Unity r146 plugin.
when drag&drop plugin to unity. popup this message.
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(26,27): error CS1519: Unexpected symbol for' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(26,43): error CS1519: Unexpected symbol <' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(26,55): error CS1519: Unexpected symbol -' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(26,61): error CS1519: Unexpected symbol ++' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(27,41): error CS1519: Unexpected symbol +=' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(27,43): error CS0178: Invalid rank specifier: expected ,' or ]'
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(27,50): error CS1519: Unexpected symbol +' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(28,38): error CS1519: Unexpected symbol ;' in class, struct, or interface member declaration
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(31,32): error CS0116: A namespace can only contain types and namespace declarations
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(37,30): error CS0116: A namespace can only contain types and namespace declarations
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(50,30): error CS0116: A namespace can only contain types and namespace declarations
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(56,38): error CS1518: Expected class', delegate', enum', interface', or struct'
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(68,17): error CS8025: Parsing error
Assets/Plugins/MikuMikuDance for Unity/XFileImporter/Private/XFileConverter.cs(68,17): error CS1027: Expected #endif' directive
how can i fix it? need help.