Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Nick Amato · Jan 27, 2020 at 03:32 PM · apisunity3dsdks

'PfEditor' does not exist?,PfEditor does not exist in the namespace?

When I try to build my unity project for PC I keep getting prompted with this error message and the build cannot complete:

Assets\PlayFabController.cs(3,15): error CS0234: The type or namespace name 'PfEditor' does not exist in the namespace 'PlayFab' (are you missing an assembly reference?)

I am using unity 2019.2.18f1 and I have the up to date PlayFab

Any work around for this?

,

While trying to build my game in Unity, I keep getting this error that prevents me from completing the build:

Assets\PlayFabController.cs(3,15): error CS0234: The type or namespace name 'PfEditor' does not exist in the namespace 'PlayFab' (are you missing an assembly reference?)

I am using Unity 2019.2.10f1 with all up to date PlayFab.

Any way to work around this?

Comment

People who like this

0 Show 0
10 |1200 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

6 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Nick Amato · Jan 26, 2020 at 05:12 AM

Found a fix, stupid mistake!

Comment

People who like this

0 Show 1 · Share
10 |1200 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 Robert Bechara · Apr 05, 2020 at 08:14 AM 0
Share

Please provide the solution found to help others

avatar image

Answer by Carlos sandoval · Feb 17, 2020 at 02:02 AM

solution, plis

,

solution plis.

Comment

People who like this

0 Show 0 · Share
10 |1200 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

Answer by Robert Bechara · Apr 05, 2020 at 08:13 AM

Any solution found for this problem

Comment

People who like this

0 Show 0 · Share
10 |1200 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

Answer by Nick Amato · Apr 05, 2020 at 06:11 PM

Hey guys,

Sorry for such a delayed response. To begin, I was following this youtube tutorial (https://www.youtube.com/watch?v=rCcll2yPCWo&list=PLWeGoBm1YHVgi6ZcwWGt27Y4NHUAG5smX∈dex=1) to set up a simple database for my small indie game. In "Lesson 5" the tutorial sets up some cloud scripts, that is where I ran into this error. From there, I simply started backtracking to where my game actually worked.

In short, my solution was to remove the code for cloud scripting. There are other ways to post and retrieve data from the database without using cloud scripting. If you'd like to learn more about it, I suggest watching the entire youtube series that I linked to previously.

The purpose of playfab in my game is for a small user base in which cloud scripting isn't necessary. So my solution of just removing it is fine in my case. Perhaps you NEED to have cloud scripting for your situation. In that case, I'm not quite sure how to work around this error.

Anyways, hope this helped a little bit.

Comment

People who like this

0 Show 0 · Share
10 |1200 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

Answer by Christian · Apr 16, 2020 at 07:07 PM

Just chiming in here to let you all guys know I had the very same issue this morning, Since the post selected here as Best Answer did not help me at all I thought I'd tell you what I did to solve this. it's basically an issue regarding the import of that specific library, that seems it's not allowed to get included in a final build.

In my case I was using a reference of 'Playfab.PfEditor.Json.JsonWrapper' class when calling the function 'Deserialize'. Replacing that call with the very same one found in "PlayFab.Json.PlayFabSimpleJson" made the error go away and works the exact same way.

Summarizing: Get rid of any import that contains a reference to 'PfEditor' and you should be good to go.

Hope this helps some of you folks.

Comment
Hector Borges
heltonluizsb

People who like this

2 Show 2 · Share
10 |1200 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 Hector Borges · Jul 23, 2020 at 02:49 PM 0
Share

Thank you! That was really helpful.

avatar image heltonluizsb · Sep 04, 2020 at 04:34 PM 0
Share

That's exactly what I needed. Thanks!

avatar image

Answer by Noel Ramirez · Sep 02, 2020 at 02:53 AM

I found an answer on this post
https://community.playfab.com/questions/34407/json-problem-with-playfab-and-unity-20192.html

Comment

People who like this

0 Show 0 · Share
10 |1200 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.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Why PlayFab don't get Facebook test user's friends? 1 Answer

    Avoid hearing my own voice on PlayFab Party Voice Unity SDK with Photon - PUN 2 2 Answers

    Region Ping measured RTT inaccurate/high using Unity HTTP, recommendations or ICMP ping protocol support? 1 Answer

    What is the intended way to deserialize custom data from an api call.,Intended way to deserialize custom data from api call. 1 Answer

    executecloudscript unity Function Parameter 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges