question

yzx2002 avatar image
yzx2002 asked

Where can I find sample code for Webinars(Unity) video?

For instance, this video.

https://www.youtube.com/playlist?list=PLHCfyL7JpoPZkaCUKGqqvn-VXCbUzqeHg

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

·
brendan avatar image
brendan answered

Our primary demo is Unicorn Battle, which you can find complete code for here: https://github.com/PlayFab/UnicornBattle. If you have specific features you're looking for, please let us know what they are, and we can direct you appropriately.

6 comments
10 |1200

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

yzx2002 avatar image yzx2002 commented ·

Thank you for quick reply. Any video tutorial for the demo Unicorn Battle? It's complicated and hard to follow up the development process.

0 Likes 0 ·
brendan avatar image brendan yzx2002 commented ·

We have a few video tutorials in our YouTube channel, here (https://www.youtube.com/user/playfabnetwork) and we'll be producing more in future.

0 Likes 0 ·
yzx2002 avatar image yzx2002 commented ·

I downloaded the UnicornBattle project from github, but I got this error :" Assets/Scripts/PF_StaticsAndHelpers/HTTP/UploadToPlayFabContentService.cs(11,15): error CS0234: The type or namespace name `AdminModels' does not exist in the namespace `PlayFab'. Are you missing an assembly reference?"

How can I solve the problem?

0 Likes 0 ·
brendan avatar image brendan yzx2002 commented ·

That would indicate that you don't have the Unity SDK installed in your project. You can obtain the latest version of the SDK here: https://github.com/PlayFab/UnitySDK

0 Likes 0 ·
yzx2002 avatar image yzx2002 commented ·

I found Unity SDK folders in the original UnicornBattle project. How can I install the latest version? I clone the github, is the latest version named"UnitySDK.unitypackage"?

0 Likes 0 ·
brendan avatar image brendan yzx2002 commented ·

Actually, the project in GitHub does have the SDK embedded, so if it is added to a fresh project it should build fine. Can you let us know specifically what steps you took to set up your project? Just to make sure, you put only the UnicornBattle folder in your UB project, right? Not both projects (UnicornBattle and UB_Uploader)?

0 Likes 0 ·

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.