Skip to content

Commit 87117e0

Browse files
authored
feat: add support for multiple scene operations (#17)
* build: update Unity to 2022.2.12f1 * refactor: add default parameter values to loaders * fix: remove unitask reference from coroutine loader * add script-templates package * feat: add interface support for multiple scene ops * feat: add batch scene operations for scene manager * build: update to Unity 2022.2.17f1 * feat: add batch scene operation tests * feat: add addressable batch scene operations * refactor: improve debug messages * docs: add docs for ISceneManager batch operations * feat: add batch scene ops to scene loader interface * refactor: simplify regular scene operations * feat: add async scene loader batch scene operations * test: add scene loader batch scene ops tests * refactor: minor tweaks and improvements * docs: update docs regarding batch scene operations * test: fix loading fader test time * test: increase timeout * test: revert test utilities scene unloading method * ci: fix test workflow syntax * build: update to unity 2022.3.2f1
1 parent 4e8182e commit 87117e0

File tree

45 files changed

+1221
-261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1221
-261
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,26 @@ jobs:
1818
project-path:
1919
- ./
2020
testMode:
21-
- playmode
21+
# TODO: Restore playmode tests once Unity fixes the linux editor tests issue: https://github.com/mygamedevtools/scene-loader/issues/18
22+
# - playmode
23+
- standalone
2224
steps:
2325
- uses: actions/checkout@v3
2426
with:
2527
lfs: true
2628
- uses: actions/cache@v3
2729
with:
28-
path: ${{ matrix.projectPath }}/Library
29-
key: Library-${{ matrix.projectPath }}
30+
path: ${{ matrix.project-path }}/Library
31+
key: Library-${{ matrix.project-path }}
3032
restore-keys: |
3133
Library-
32-
- uses: game-ci/unity-test-runner@v2
34+
# TODO: Replace with actual release version once Unity fixes the linux editor tests issue: https://github.com/mygamedevtools/scene-loader/issues/18
35+
- uses: game-ci/unity-test-runner@31086d985910613d75c32ba965f657df9c298820
3336
id: tests
3437
env:
3538
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
3639
with:
37-
projectPath: ${{ matrix.projectPath }}
40+
projectPath: ${{ matrix.project-path }}
3841
testMode: ${{ matrix.testMode }}
3942
artifactsPath: ${{ matrix.testMode }}-artifacts
4043
githubToken: ${{ secrets.GITHUB_TOKEN }}
@@ -45,4 +48,4 @@ jobs:
4548
with:
4649
name: PlayMode
4750
token: ${{ secrets.CODECOV_TOKEN }}
48-
files: ${{ steps.tests.outputs.coveragePath }}/**/*.xml
51+
files: ${{ steps.tests.outputs.coveragePath }}/**/*.xml

LICENSE.meta renamed to Assets/ScriptTemplates.meta

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#SIGNATURE#using UnityEngine;
2+
3+
#NAMESPACE#public class #SCRIPTNAME# : MonoBehaviour
4+
{
5+
6+
}

CHANGELOG.md.meta renamed to Assets/ScriptTemplates/71-My Scripts__Game Objects__Mono Behaviour-NewBehaviourScript.cs.txt.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#SIGNATURE#using UnityEngine;
2+
3+
#NAMESPACE#public class #SCRIPTNAME# : ScriptableObject
4+
{
5+
6+
}

README.md.meta renamed to Assets/ScriptTemplates/72-My Scripts__Game Objects__Scriptable Object-NewScriptableObject.cs.txt.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#SIGNATURE#using Unity.Entities;
2+
3+
#NAMESPACE#public partial struct #SCRIPTNAME# : ISystem
4+
{
5+
6+
}

Assets/ScriptTemplates/73-My Scripts__Entities__System-NewSystem.cs.txt.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#SIGNATURE#using Unity.Entities;
2+
3+
#NAMESPACE#public struct #SCRIPTNAME# : IComponentData
4+
{
5+
6+
}

Assets/ScriptTemplates/74-My Scripts__Entities__Component-NewComponent.cs.txt.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)