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
0
Question by B-R-J · Aug 09, 2016 at 03:12 PM · assetbundlenamespacestandard-assets

CrossPlatformInput class not within the UnityStandardAssets namespace

My Unity scripts require the cross platform input classes. First they were called in the usual way.

using UnityStandardAssets.CrossPlatformInput;

This worked for a long time. But recently all scripts that had the above statement gave this error.

 Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/ThirdPersonUserControl.cs(3,27): error CS0234: The type or namespace name `CrossPlatformInput' does not exist in the namespace `UnityStandardAssets'. Are you missing an assembly reference?

Now the project doesn't compile..

I googled and tried importing the scripts and assets again but nothing worked. Further search showed that this CrossPlatformInput class is under 'UnitySampleAssets' and not under 'UnityStandardAssets'.

How can I resolve this error?

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

2 Replies

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

Answer by tanoshimi · Aug 09, 2016 at 03:14 PM

"Further search showed that this CrossPlatformInput class is under 'UnitySampleAssets' and not under 'UnityStandardAssets'" So you need to add an assembly reference, like the error message says:

 using UnitySampleAssets;
Comment
Add comment · Show 4 · 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 IgorSpremo · Jan 09, 2018 at 08:03 AM 0
Share

@tanoshimi

Hello! I am totally new to the Unity environment and I keep getting this error message. When I tried editing the script in the Visual Studio 2015 as you suggested, it says that the UnitySampleAssets assembly reference is missing. How can I add that reference? Or am I doing something wrong here?

I am in the 3D project, creating a basic RPG game. The problem occurred when I performed the operation: Assets -> Import Package -> Cameras. It says that in the FreeLookCam is an error described by the question above you have answered.

I am using Unity 2017.3.0f3.

Thank you in advance.

avatar image IgorSpremo IgorSpremo · Jan 09, 2018 at 08:10 AM 0
Share

It's O$$anonymous$$. I've solved it. :D

Sorry for disturbing you.

avatar image Ezz12 · Sep 25, 2018 at 09:04 PM 0
Share

How to add a reference to UNIT in C #

avatar image endrboy2013 · Jan 20, 2019 at 06:48 AM 0
Share

tell me how you solved the problem?

avatar image
0

Answer by ValterJunior · Aug 12, 2017 at 12:23 AM

Depois de vários dias a procura do concerto desse erro, finamente encontrei. Obrigado.

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

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

7 People are following this question.

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

Related Questions

Create asset bundle on backend - using Unity namespace in backend app 1 Answer

Dumb Question - Can't use Standard Assets package in scripts. 0 Answers

Modify Standard Asset --> MultipurposeCameraRig (add manual rotation) 0 Answers

Can not load script from AssetBundle which has namespace. 1 Answer

How to import the object from server to unity 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