Skip to content

Commit

Permalink
Updated settings for build to be in a phone-shaped window
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Bath committed Feb 6, 2024
1 parent 6171efd commit f858a9e
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 16 deletions.
8 changes: 8 additions & 0 deletions Assets/StreamingAssets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions ProjectSettings/BurstAotSettings_StandaloneWindows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"MonoBehaviour": {
"Version": 4,
"EnableBurstCompilation": true,
"EnableOptimisations": true,
"EnableSafetyChecks": false,
"EnableDebugInAllBuilds": false,
"UsePlatformSDKLinker": false,
"CpuMinTargetX32": 0,
"CpuMaxTargetX32": 0,
"CpuMinTargetX64": 0,
"CpuMaxTargetX64": 0,
"CpuTargetsX32": 6,
"CpuTargetsX64": 72,
"OptimizeFor": 0
}
}
6 changes: 6 additions & 0 deletions ProjectSettings/CommonBurstAotSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"MonoBehaviour": {
"Version": 4,
"DisabledWarnings": ""
}
}
4 changes: 2 additions & 2 deletions ProjectSettings/EditorBuildSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ EditorBuildSettings:
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Scenes/SampleScene.unity
guid: 2cda990e2423bbf4892e6590ba056729
path: Assets/Scenes/BootstrapScene.unity
guid: e98f3a64b98f0d7439c3f65eb5aba5a2
m_configObjects: {}
68 changes: 55 additions & 13 deletions ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: DefaultCompany
companyName: Tom Bath
productName: Telexistence Clock App
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
m_SplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1}
m_ShowUnitySplashScreen: 1
m_ShowUnitySplashLogo: 1
m_SplashScreenOverlayOpacity: 1
Expand All @@ -42,8 +42,8 @@ PlayerSettings:
m_SplashScreenLogos: []
m_VirtualRealitySplashScreen: {fileID: 0}
m_HolographicTrackingLossScreen: {fileID: 0}
defaultScreenWidth: 1920
defaultScreenHeight: 1080
defaultScreenWidth: 720
defaultScreenHeight: 1280
defaultScreenWidthWeb: 960
defaultScreenHeightWeb: 600
m_StereoRenderingPath: 0
Expand Down Expand Up @@ -88,7 +88,7 @@ PlayerSettings:
bakeCollisionMeshes: 0
forceSingleInstance: 0
useFlipModelSwapchain: 1
resizableWindow: 0
resizableWindow: 1
useMacAppStoreValidation: 0
macAppStoreCategory: public.app-category.games
gpuSkinning: 0
Expand All @@ -98,8 +98,8 @@ PlayerSettings:
xboxEnableKinectAutoTracking: 0
xboxEnableFitness: 0
visibleInBackground: 1
allowFullscreenSwitch: 1
fullscreenMode: 1
allowFullscreenSwitch: 0
fullscreenMode: 3
xboxSpeechDB: 0
xboxEnableHeadOrientation: 0
xboxEnableGuest: 0
Expand Down Expand Up @@ -129,11 +129,11 @@ PlayerSettings:
vulkanEnableLateAcquireNextImage: 0
vulkanEnableCommandBufferRecycling: 1
m_SupportedAspectRatios:
4:3: 1
5:4: 1
16:10: 1
16:9: 1
Others: 1
4:3: 0
5:4: 0
16:10: 0
16:9: 0
Others: 0
bundleVersion: 1.0
preloadedAssets: []
metroInputSource: 0
Expand Down Expand Up @@ -269,7 +269,49 @@ PlayerSettings:
AndroidMinifyDebug: 0
AndroidValidateAppBundleSize: 1
AndroidAppBundleSizeToValidate: 150
m_BuildTargetIcons: []
m_BuildTargetIcons:
- m_BuildTarget: Standalone
m_Icons:
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 1024
m_Height: 1024
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 512
m_Height: 512
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 256
m_Height: 256
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 128
m_Height: 128
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 64
m_Height: 64
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 2800000, guid: ec3642073ae98f34689d8bcbb6006760, type: 3}
m_Width: 48
m_Height: 48
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 32
m_Height: 32
m_Kind: 0
- serializedVersion: 2
m_Icon: {fileID: 0}
m_Width: 16
m_Height: 16
m_Kind: 0
m_BuildTargetPlatformIcons: []
m_BuildTargetBatching: []
m_BuildTargetGraphicsJobs:
Expand Down
24 changes: 23 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,29 @@ To get started with the Time App in Unity, follow these steps:

## Usage

xx
To run the prebuilt executable, follow these steps:
1.

To use the package in an existing package, follow these steps:
1. Go to the this link to download the package:
2. Open your project, Assets-> Import Package-> Custom Package, then find the unitypackage in your downloads folder
3. Import the entire package unless you already have TMPro or UniRX installed
4. Go to package folder in explorer, find the "manifest.json" file and add:
"jp.hadashikick.vcontainer": "https://github.com/hadashiA/VContainer.git?path=VContainer/Assets/VContainer#1.14.0",
5. Open the bootstrap scene to see it working. I suggest creating a custom view size via
Game View-> Free Aspect-> Add-> Width 9 Height 16
6. Run the project! It should work at this stage.

To add a new module, follow these steps:
1. You will need to create the lifetimescope file, and the three parts of the MVVM architecture
For example, an 'alarm' module might have:
AlarmLifetimeScope.cs For Vcontainer DI
AlarmModel.cs For use-case code
AlarmView.cs For UI related code
AlarmViewModel.cs For connecting the model and view code, using UniRX
2. Unfortunately, I didn't have time to develop a full interface system.
Generally speaking, please keep the 'View' and 'Model' files independant from ViewModel so they aren't dependant on it.
3. Expand the test suite to as needed using TDD (Test Driven Development)

## Questions

Expand Down

0 comments on commit f858a9e

Please sign in to comment.