question

Esteban Gamelogic avatar image
Esteban Gamelogic asked

Can I use CloudScript with GitHub and submodules?

I would like to use Github along with some git submodules that have some general javascript files that will be used in several of the games I'm developing in PlayFab. Is this possible?

CloudScript
10 |1200

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

brendan avatar image
brendan answered

Our GitHub integration allows you to set a repo which is connected to your title's Cloud Script such that whenever you update the master branch of the repo, it automatically pulls all the JavaScript into a new revision of your Cloud Script. We don't specifically pull cross-repo references as part of that, so you would need to copy the code from the other repo into your repo, to have it picked up as part of your Cloud Script. We can look at adding submodule support in future, if there's a significant demand for it.

2 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.

rasto61 avatar image rasto61 commented ·

Was there demand for this?

0 Likes 0 ·
brendan avatar image brendan rasto61 commented ·

Not a lot, no. We're working on our v2 for Cloud Script (which is referenced as C# Cloud Script in our blog posts) right now. Once that's available for preview, I'd recommend having a look at that.

0 Likes 0 ·
Dale Strickler avatar image
Dale Strickler answered

Note. I have been experimenting with git submodules based on this:

https://prime31.github.io/A-Method-for-Working-with-Shared-Code-with-Unity-and-Git/

Based on very initial tests it seems to work with the PlayFab UnitySdk and the PlayFabEditorExtensions. More testing needed.

It seems like this same process could be used to pull a standard set of JS tools into the Cloud Script repo.

I know it is not the exact same conditions but I think the technique might work. I use a MAC. I am not sure how it translates to Windows. Linux should work the same.

1 comment
10 |1200

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

Dale Strickler avatar image Dale Strickler commented ·

I am using Mac.

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.