question

My Game Studio avatar image
My Game Studio asked

How to use Entity API

Hey there...i habe troubles with the new entity API...how can i use it? I get an error in visual Studio when trying to set the LoginTitlePlayerAccountEntity = true parameter on the LoginWithCustomId Call that a definition does not exist for it.

Am I missing a using Statement?

Can you describe how to implement the new API in Unity. I am using Visual Studio 2017.

Tank you

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

·
Andy avatar image
Andy answered

You don't actually need to use the LoginTitlePlayerAccountEntity parameter. As of earlier last year, all login calls automatically log in the title player account. and return an entity token. That's sufficient for you to then use rest of the entity API methods.

We're a little bit light on Entity API tutorials right now, as we're busily working to flesh out the rest of the functionality in the new API model. There are two (somewhat dated) tutorials here, though:

https://api.playfab.com/docs/tutorials/entities/entity-groups

https://api.playfab.com/docs/tutorials/entities/getting-started-entities

If there are specific things you're trying to accomplish, we can provide more detailed steps.

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.