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?
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?
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.
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.
4 People are following this question.