So I’ve made a Survival Shooter based on the tutorial on the website. I then decided to import a bunch of assets into it so I could use the tutorial’s assets with it.
The original scenes and assets I made contain a FirstPersonController with the ability to grab objects as well as fire other objects when grabbed. I wanted to add enemies from the Survival tutorial.
However, I keep getting these errors:
Assets/Standard
Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs(3,46):
error CS0234: The type or namespace
name PlatformSpecific' does not exist in the namespace UnityStandardAssets.CrossPlatformInput’.
Are you missing an assembly
reference?
Assets/Standard
Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs(18,32):
error CS0246: The type or namespace
name `VirtualInput’ could not be
found. Are you missing a using
directive or an assembly reference?
Assets/Standard
Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs(19,32):
error CS0246: The type or namespace
name `VirtualInput’ could not be
found. Are you missing a using
directive or an assembly reference?
Assets/Standard Assets/CrossPlatformInput/Scripts/CrossPlatformInputManager.cs(3,46): error CS0234: The type or namespace name PlatformSpecific' does not exist in the namespace UnityStandardAssets.CrossPlatformInput’. Are you missing an assembly reference?
I know that I have the files in the Assets that they complain about, but no matter what I do, I don’t know what to do to prevent these errors from popping up.
@Czar-Man@jeremiaz MY DUDES I FOUND THE SOLUTION!! All you need to do is import the files when you go to import the standard assets. ill put some pictures to show you what to look for. It took me about a day and a half to fix this error, and I had to take matters into my own hands because there was nothing on the internet to solve the problem, and yeah, sorry im 5 months late lol.
I had this problem because a different asset pack had already included crossplatforminput. Once I got rid of it from that asset pack everything was fine.
Actually its not all about importing the package ! instead add following line in your script after importing Unity standard asset> import package> CrossPlatformInput. (Make sure you check all of them). If you are facing the same issue even after importing the package, then add following lines in the beginning of your script:
using UnityStandardAssets;
using UnityStandardAssets.CrossPlatformInput;
I was having the same problem.
I think it will be fixed if you reimport the asset and there’s a popup that ask you to changed your project settings.
Or you can go to Assets/Run Api Updater
@Czar-Man I am having the exact same problem, but its the editor not allowing me to enter Play Mode because the CrossPlatformInputManager.cs has the error CS0029. This is annoying and I will probably just post a completely separate question about this.
I had this problem when I installed Obi Rope. I would delete Obi Rope and still had the problem, so I would delete all of standard assets to get all the errors fixed. What I did to fix it was to install Standard Asset Last . I installed Obi Rope and no errors. then I installed Standard Assets and had no errors. . Go figure ? Hope this helps.