• 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 /
  • Help Room /
avatar image
0
Question by SellSellSell · Apr 28, 2017 at 12:38 PM · errormobilefacebooknamespace

The type or namespace name `Unity' does not exist in the namespace `UnityEditor.Facebook'

I'm developing a moblie app, and I get this error: The type or namespace name "Unity" does not exist in the namespace "UnityEditor.Facebook" alt text alt text

What can I do to fix this?

Comment
Add comment · Show 4
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 hexagonius · Apr 30, 2017 at 12:47 PM 0
Share

Remove the .Unity. If that's not it, just delete that line and compile. If you get errors in the code you can right click the underlined code, select refactor and add the missing using directive.

avatar image WimVdS1994 · May 19, 2017 at 03:23 AM 0
Share

Did you find a solution

avatar image WimVdS1994 · May 19, 2017 at 07:17 AM 0
Share

Did you find a solution

avatar image Lund · Jul 13, 2017 at 01:12 PM 0
Share

Anyone had any luck solving this issue? I've stumbled upon it as well with Facebook SDK 7.9.4. and can't seem to find any solutions. It only seems to be an issue on Mac - working on the same version on Windows does not have any issues.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by DoomerDGR8 · Aug 25, 2017 at 09:09 PM

I was facing the exact issue. Seems to be namespace conflict. I updated the using statement to this by adding the 'global::'

namespace fix

I did this for all file reporting a similar issue from Unity.


untitled-picture.png (13.2 kB)
Comment
Add comment · Show 2 · 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 MegsTan · Aug 07, 2018 at 08:26 AM 0
Share

Yup. that fixed the problem

avatar image InF-Designs · Jan 29 at 04:36 AM 0
Share

Thanks so much for posting that. Really saved my skin.

avatar image
-2

Answer by springwater · Jul 13, 2017 at 02:47 PM

I think namespaces need to be defined in square brackets

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 DoomerDGR8 · Aug 25, 2017 at 09:00 PM 0
Share

That's not it

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

10 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

Related Questions

WebGL Facebook SDK Login 0 Answers

The Name 'GUID' does not exist in the current context 1 Answer

2 error messages i can't seem to fix (CS0101 and CS0111) 1 Answer

The type or namespace name `CnControls' does not exist in the namespace `UnityStandardAssets'. Are you missing an assembly reference? 2 Answers

FACEBOOK login web browser error unity5.52 fbsdk7.9.4 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges