Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
-1
Question by Czar-Man · May 05, 2016 at 06:53 AM · inputmanagerimporting assetstutorialscrossplatform

CrossPlatforminputManager errors despite all the files being in the project.

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

7 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by hryhall · Oct 19, 2016 at 10:39 AM

@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. alt text

alt text

You need to scroll down a bit to find CrossPlatformInputManager.cs and the other ones, but once you import them youll be good to go :D


screen-shot-2016-10-19-at-93017-pm.png (15.6 kB)
screen-shot-2016-10-19-at-93159-pm.png (44.0 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by BurningThumb · Oct 31, 2016 at 08:34 PM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by mfahdirshad · Feb 01, 2018 at 08:51 PM

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;

Moreover, also consider @BurningThumb solution.

Thank You and Love from Pakistan.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by jeremiaz · Aug 11, 2016 at 01:19 AM

I'm on the same page here and I could not find any answer to this problem. Have you found how to fix it? Thanx

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by johnlanz · Sep 02, 2016 at 09:17 AM

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

CrossPlatformInput 0 Answers

How to use input manager on iOS 0 Answers

CrossPlatformInputManager doesn't work on Android 0 Answers

Unity StandardAssets CrossPlatformInput (MobileInput Buttons) for Crouching issues 0 Answers

Tutorial Assets for commercial use? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges