question

Andy Maddison avatar image
Andy Maddison asked

Editor Extensions compile error with older 2.x SDK

Just added editor extensions to my project for the first time (2.54.181105). I have the 2.11.161017 SDK installed.

Your docs say that 2.0+ is supported but I'm getting a compile error from the extensions code.

Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorPackages.cs(8,42): error CS0118: `PlayFab.Editor' is a `namespace' but a `type' was expected

This is the error line.

public classPlayFabEditorPackages: Editor


The problem is because Editor here is actually PlayFab.Editor.

And in the SDK there is a file named PlayFabHelp which defines this namespace

namespace PlayFab.Editor


Fully qualifying with UnityEditor.Editor fixes it.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
franklinchen avatar image
franklinchen answered

Thank you for reporting this issue, we filed this issue internally and opened an issue to track that in Github: link

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.