mirror of
https://gitlab.com/ProcyonLotor/vrchat-template.git
synced 2026-08-25 18:53:53 +05:00
Compare commits
7 Commits
efc09d02c3
...
unity-2022
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df7ea9e5b5 | ||
|
|
50947a0def | ||
|
|
bab0464cf4 | ||
|
|
6da4c79283 | ||
|
|
e7a992ee38 | ||
|
|
3a7d2a0a07 | ||
|
|
72bf2eda79 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,6 +8,7 @@
|
||||
/[Bb]uilds/
|
||||
/[Ll]ogs/
|
||||
/[Uu]ser[Ss]ettings/
|
||||
*.log
|
||||
|
||||
# MemoryCaptures can get excessive in size.
|
||||
# They also could contain extremely sensitive data
|
||||
|
||||
@@ -17,7 +17,7 @@ PhysicsManager:
|
||||
m_ClothInterCollisionDistance: 0
|
||||
m_ClothInterCollisionStiffness: 0
|
||||
m_ContactsGeneration: 1
|
||||
m_LayerCollisionMatrix: dfafffffdfafffffdfafffffffffffffdfafffffc800c0ffffffffffffffffffdfafffffdf09fcffdf09fcffdfafffffc800c0ffdfe9c3ffc820c0ffdfa9ffffdfa9ffffdfa9ffffdf8fffffdf8fffffdf8fffffdf8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
m_LayerCollisionMatrix: dfaff7ffdfaff7ffdfaff7ffffffffffdfaff7ffc800c0ffffffffffffffffffdfaff7ffdf09f4ffdf09f4ffdfaff7ffc800c0ffdfe9c3ffc820c0ffdfa9f7ffdfa9f7ffdfa9f7ffdf8ff7ffc800c0ffdf8ff7ffdf8ff7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
|
||||
m_AutoSimulation: 1
|
||||
m_AutoSyncTransforms: 0
|
||||
m_ReuseCollisionCallbacks: 1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
--- !u!129 &1
|
||||
PlayerSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 20
|
||||
serializedVersion: 26
|
||||
productGUID: 9e59d35066069f1469c7165423087ff5
|
||||
AndroidProfiler: 0
|
||||
AndroidFilterTouchesWhenObscured: 0
|
||||
@@ -48,12 +48,15 @@ PlayerSettings:
|
||||
defaultScreenHeightWeb: 600
|
||||
m_StereoRenderingPath: 1
|
||||
m_ActiveColorSpace: 1
|
||||
m_SpriteBatchVertexThreshold: 300
|
||||
m_MTRendering: 1
|
||||
mipStripping: 0
|
||||
numberOfMipsStripped: 0
|
||||
numberOfMipsStrippedPerMipmapLimitGroup: {}
|
||||
m_StackTraceTypes: 010000000100000001000000010000000100000001000000
|
||||
iosShowActivityIndicatorOnLoading: -1
|
||||
androidShowActivityIndicatorOnLoading: -1
|
||||
iosUseCustomAppBackgroundBehavior: 0
|
||||
iosAllowHTTPDownload: 1
|
||||
allowedAutorotateToPortrait: 1
|
||||
allowedAutorotateToPortraitUpsideDown: 1
|
||||
allowedAutorotateToLandscapeRight: 1
|
||||
@@ -117,19 +120,19 @@ PlayerSettings:
|
||||
switchNVNShaderPoolsGranularity: 33554432
|
||||
switchNVNDefaultPoolsGranularity: 16777216
|
||||
switchNVNOtherPoolsGranularity: 16777216
|
||||
switchGpuScratchPoolGranularity: 2097152
|
||||
switchAllowGpuScratchShrinking: 0
|
||||
switchNVNMaxPublicTextureIDCount: 0
|
||||
switchNVNMaxPublicSamplerIDCount: 0
|
||||
switchNVNGraphicsFirmwareMemory: 32
|
||||
stadiaPresentMode: 0
|
||||
stadiaTargetFramerate: 0
|
||||
vulkanNumSwapchainBuffers: 3
|
||||
vulkanEnableSetSRGBWrite: 0
|
||||
vulkanEnablePreTransform: 0
|
||||
vulkanEnableLateAcquireNextImage: 0
|
||||
m_SupportedAspectRatios:
|
||||
4:3: 1
|
||||
5:4: 1
|
||||
16:10: 1
|
||||
16:9: 1
|
||||
Others: 1
|
||||
vulkanEnableCommandBufferRecycling: 1
|
||||
loadStoreDebugModeEnabled: 0
|
||||
bundleVersion: 0.1
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
@@ -138,45 +141,27 @@ PlayerSettings:
|
||||
xboxOneDisableKinectGpuReservation: 1
|
||||
xboxOneEnable7thCore: 1
|
||||
vrSettings:
|
||||
cardboard:
|
||||
depthFormat: 0
|
||||
enableTransitionView: 0
|
||||
daydream:
|
||||
depthFormat: 0
|
||||
useSustainedPerformanceMode: 0
|
||||
enableVideoLayer: 0
|
||||
useProtectedVideoMemory: 0
|
||||
minimumSupportedHeadTracking: 0
|
||||
maximumSupportedHeadTracking: 1
|
||||
hololens:
|
||||
depthFormat: 1
|
||||
depthBufferSharingEnabled: 1
|
||||
lumin:
|
||||
depthFormat: 0
|
||||
frameTiming: 2
|
||||
enableGLCache: 0
|
||||
glCacheMaxBlobSize: 524288
|
||||
glCacheMaxFileSize: 8388608
|
||||
oculus:
|
||||
sharedDepthBuffer: 1
|
||||
dashSupport: 1
|
||||
lowOverheadMode: 0
|
||||
protectedContext: 0
|
||||
v2Signing: 1
|
||||
enable360StereoCapture: 0
|
||||
isWsaHolographicRemotingEnabled: 0
|
||||
enableFrameTimingStats: 0
|
||||
enableOpenGLProfilerGPURecorders: 1
|
||||
useHDRDisplay: 0
|
||||
D3DHDRBitDepth: 0
|
||||
hdrBitDepth: 0
|
||||
m_ColorGamuts: 00000000
|
||||
targetPixelDensity: 30
|
||||
resolutionScalingMode: 0
|
||||
resetResolutionOnWindowResize: 0
|
||||
androidSupportedAspectRatio: 1
|
||||
androidMaxAspectRatio: 2.1
|
||||
applicationIdentifier: {}
|
||||
buildNumber: {}
|
||||
buildNumber:
|
||||
Standalone: 0
|
||||
VisionOS: 0
|
||||
iPhone: 0
|
||||
tvOS: 0
|
||||
overrideDefaultApplicationIdentifier: 0
|
||||
AndroidBundleVersionCode: 1
|
||||
AndroidMinSdkVersion: 19
|
||||
AndroidMinSdkVersion: 22
|
||||
AndroidTargetSdkVersion: 0
|
||||
AndroidPreferredInstallLocation: 1
|
||||
aotOptions:
|
||||
@@ -189,12 +174,15 @@ PlayerSettings:
|
||||
APKExpansionFiles: 0
|
||||
keepLoadedShadersAlive: 0
|
||||
StripUnusedMeshComponents: 1
|
||||
strictShaderVariantMatching: 0
|
||||
VertexChannelCompressionMask: 4054
|
||||
iPhoneSdkVersion: 988
|
||||
iOSTargetOSVersionString: 10.0
|
||||
iOSTargetOSVersionString: 12.0
|
||||
tvOSSdkVersion: 0
|
||||
tvOSRequireExtendedGameController: 0
|
||||
tvOSTargetOSVersionString: 10.0
|
||||
tvOSTargetOSVersionString: 12.0
|
||||
VisionOSSdkVersion: 0
|
||||
VisionOSTargetOSVersionString: 1.0
|
||||
uIPrerenderedIcon: 0
|
||||
uIRequiresPersistentWiFi: 0
|
||||
uIRequiresFullScreen: 1
|
||||
@@ -228,10 +216,11 @@ PlayerSettings:
|
||||
iOSLaunchScreeniPadFillPct: 100
|
||||
iOSLaunchScreeniPadSize: 100
|
||||
iOSLaunchScreeniPadCustomXibPath:
|
||||
iOSUseLaunchScreenStoryboard: 0
|
||||
iOSLaunchScreenCustomStoryboardPath:
|
||||
iOSLaunchScreeniPadCustomStoryboardPath:
|
||||
iOSDeviceRequirements: []
|
||||
iOSURLSchemes: []
|
||||
macOSURLSchemes: []
|
||||
iOSBackgroundModes: 0
|
||||
iOSMetalForceHardShadows: 0
|
||||
metalEditorSupport: 1
|
||||
@@ -241,21 +230,33 @@ PlayerSettings:
|
||||
appleDeveloperTeamID:
|
||||
iOSManualSigningProvisioningProfileID:
|
||||
tvOSManualSigningProvisioningProfileID:
|
||||
VisionOSManualSigningProvisioningProfileID:
|
||||
iOSManualSigningProvisioningProfileType: 0
|
||||
tvOSManualSigningProvisioningProfileType: 0
|
||||
VisionOSManualSigningProvisioningProfileType: 0
|
||||
appleEnableAutomaticSigning: 0
|
||||
iOSRequireARKit: 0
|
||||
iOSAutomaticallyDetectAndAddCapabilities: 1
|
||||
appleEnableProMotion: 0
|
||||
shaderPrecisionModel: 0
|
||||
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
|
||||
templatePackageId: com.vrchat.template.base@1.0.0
|
||||
templateDefaultScene: Assets/VRCWelcome.unity
|
||||
useCustomMainManifest: 0
|
||||
useCustomLauncherManifest: 0
|
||||
useCustomMainGradleTemplate: 0
|
||||
useCustomLauncherGradleManifest: 0
|
||||
useCustomBaseGradleTemplate: 0
|
||||
useCustomGradlePropertiesTemplate: 0
|
||||
useCustomGradleSettingsTemplate: 0
|
||||
useCustomProguardFile: 0
|
||||
AndroidTargetArchitectures: 1
|
||||
AndroidTargetDevices: 0
|
||||
AndroidSplashScreenScale: 0
|
||||
androidSplashScreen: {fileID: 0}
|
||||
AndroidKeystoreName:
|
||||
AndroidKeyaliasName:
|
||||
AndroidEnableArmv9SecurityFeatures: 0
|
||||
AndroidBuildApkPerCpuArchitecture: 0
|
||||
AndroidTVCompatibility: 0
|
||||
AndroidIsGame: 1
|
||||
@@ -269,6 +270,8 @@ PlayerSettings:
|
||||
banner: {fileID: 0}
|
||||
androidGamepadSupportLevel: 0
|
||||
chromeosInputEmulation: 1
|
||||
AndroidMinifyRelease: 0
|
||||
AndroidMinifyDebug: 0
|
||||
AndroidValidateAppBundleSize: 1
|
||||
AndroidAppBundleSizeToValidate: 150
|
||||
m_BuildTargetIcons: []
|
||||
@@ -289,6 +292,7 @@ PlayerSettings:
|
||||
- m_BuildTarget: WebGL
|
||||
m_StaticBatching: 0
|
||||
m_DynamicBatching: 0
|
||||
m_BuildTargetShaderSettings: []
|
||||
m_BuildTargetGraphicsJobs:
|
||||
- m_BuildTarget: MacStandaloneSupport
|
||||
m_GraphicsJobs: 0
|
||||
@@ -330,7 +334,7 @@ PlayerSettings:
|
||||
m_Automatic: 1
|
||||
- m_BuildTarget: AppleTVSupport
|
||||
m_APIs: 10000000
|
||||
m_Automatic: 0
|
||||
m_Automatic: 1
|
||||
- m_BuildTarget: WebGLSupport
|
||||
m_APIs: 0b000000
|
||||
m_Automatic: 1
|
||||
@@ -344,6 +348,8 @@ PlayerSettings:
|
||||
- None
|
||||
- OpenVR
|
||||
- Oculus
|
||||
m_DefaultShaderChunkSizeInMB: 16
|
||||
m_DefaultShaderChunkCount: 0
|
||||
openGLRequireES31: 0
|
||||
openGLRequireES31AEP: 0
|
||||
openGLRequireES32: 0
|
||||
@@ -353,7 +359,11 @@ PlayerSettings:
|
||||
iPhone: 1
|
||||
tvOS: 1
|
||||
m_BuildTargetGroupLightmapEncodingQuality: []
|
||||
m_BuildTargetGroupHDRCubemapEncodingQuality: []
|
||||
m_BuildTargetGroupLightmapSettings: []
|
||||
m_BuildTargetGroupLoadStoreDebugModeSettings: []
|
||||
m_BuildTargetNormalMapEncoding: []
|
||||
m_BuildTargetDefaultTextureCompressionFormat: []
|
||||
playModeTestRunnerEnabled: 0
|
||||
runPlayModeTestAsEditModeTest: 0
|
||||
actionOnDotNetUnhandledException: 1
|
||||
@@ -363,14 +373,20 @@ PlayerSettings:
|
||||
cameraUsageDescription:
|
||||
locationUsageDescription:
|
||||
microphoneUsageDescription:
|
||||
bluetoothUsageDescription:
|
||||
macOSTargetOSVersion: 10.13.0
|
||||
switchNMETAOverride:
|
||||
switchNetLibKey:
|
||||
switchSocketMemoryPoolSize: 6144
|
||||
switchSocketAllocatorPoolSize: 128
|
||||
switchSocketConcurrencyLimit: 14
|
||||
switchScreenResolutionBehavior: 2
|
||||
switchUseCPUProfiler: 0
|
||||
switchUseGOLDLinker: 0
|
||||
switchLTOSetting: 0
|
||||
switchApplicationID: 0x01004b9000490000
|
||||
switchNSODependencies:
|
||||
switchCompilerFlags:
|
||||
switchTitleNames_0:
|
||||
switchTitleNames_1:
|
||||
switchTitleNames_2:
|
||||
@@ -444,7 +460,6 @@ PlayerSettings:
|
||||
switchReleaseVersion: 0
|
||||
switchDisplayVersion: 1.0.0
|
||||
switchStartupUserAccount: 0
|
||||
switchTouchScreenUsage: 0
|
||||
switchSupportedLanguagesMask: 0
|
||||
switchLogoType: 0
|
||||
switchApplicationErrorCodeCategory:
|
||||
@@ -486,6 +501,7 @@ PlayerSettings:
|
||||
switchNativeFsCacheSize: 32
|
||||
switchIsHoldTypeHorizontal: 0
|
||||
switchSupportedNpadCount: 8
|
||||
switchEnableTouchScreen: 1
|
||||
switchSocketConfigEnabled: 0
|
||||
switchTcpInitialSendBufferSize: 32
|
||||
switchTcpInitialReceiveBufferSize: 64
|
||||
@@ -497,8 +513,12 @@ PlayerSettings:
|
||||
switchSocketInitializeEnabled: 1
|
||||
switchNetworkInterfaceManagerInitializeEnabled: 1
|
||||
switchPlayerConnectionEnabled: 1
|
||||
switchUseNewStyleFilepaths: 1
|
||||
switchUseLegacyFmodPriorities: 0
|
||||
switchUseMicroSleepForYield: 1
|
||||
switchEnableRamDiskSupport: 0
|
||||
switchMicroSleepForYieldTime: 25
|
||||
switchRamDiskSpaceSize: 12
|
||||
ps4NPAgeRating: 12
|
||||
ps4NPTitleSecret:
|
||||
ps4NPTrophyPackPath:
|
||||
@@ -574,31 +594,6 @@ PlayerSettings:
|
||||
ps4attribEyeToEyeDistanceSettingVR: 0
|
||||
ps4IncludedModules: []
|
||||
ps4attribVROutputEnabled: 0
|
||||
ps5ParamFilePath:
|
||||
ps5VideoOutPixelFormat: 0
|
||||
ps5VideoOutInitialWidth: 1920
|
||||
ps5VideoOutOutputMode: 1
|
||||
ps5BackgroundImagePath:
|
||||
ps5StartupImagePath:
|
||||
ps5Pic2Path:
|
||||
ps5StartupImagesFolder:
|
||||
ps5IconImagesFolder:
|
||||
ps5SaveDataImagePath:
|
||||
ps5SdkOverride:
|
||||
ps5BGMPath:
|
||||
ps5ShareOverlayImagePath:
|
||||
ps5NPConfigZipPath:
|
||||
ps5Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ
|
||||
ps5UseResolutionFallback: 0
|
||||
ps5UseAudio3dBackend: 0
|
||||
ps5ScriptOptimizationLevel: 2
|
||||
ps5Audio3dVirtualSpeakerCount: 14
|
||||
ps5UpdateReferencePackage:
|
||||
ps5disableAutoHideSplash: 0
|
||||
ps5OperatingSystemCanDisableSplashScreen: 0
|
||||
ps5IncludedModules: []
|
||||
ps5SharedBinaryContentLabels: []
|
||||
ps5SharedBinarySystemFolders: []
|
||||
monoEnv:
|
||||
splashScreenBackgroundSourceLandscape: {fileID: 0}
|
||||
splashScreenBackgroundSourcePortrait: {fileID: 0}
|
||||
@@ -607,6 +602,7 @@ PlayerSettings:
|
||||
webGLMemorySize: 16
|
||||
webGLExceptionSupport: 1
|
||||
webGLNameFilesAsHashes: 0
|
||||
webGLShowDiagnostics: 0
|
||||
webGLDataCaching: 1
|
||||
webGLDebugSymbols: 0
|
||||
webGLEmscriptenArgs:
|
||||
@@ -615,21 +611,45 @@ PlayerSettings:
|
||||
webGLAnalyzeBuildSize: 0
|
||||
webGLUseEmbeddedResources: 0
|
||||
webGLCompressionFormat: 1
|
||||
webGLWasmArithmeticExceptions: 0
|
||||
webGLLinkerTarget: 1
|
||||
webGLThreadsSupport: 0
|
||||
webGLWasmStreaming: 0
|
||||
webGLDecompressionFallback: 0
|
||||
webGLInitialMemorySize: 32
|
||||
webGLMaximumMemorySize: 2048
|
||||
webGLMemoryGrowthMode: 2
|
||||
webGLMemoryLinearGrowthStep: 16
|
||||
webGLMemoryGeometricGrowthStep: 0.2
|
||||
webGLMemoryGeometricGrowthCap: 96
|
||||
webGLPowerPreference: 2
|
||||
scriptingDefineSymbols: {}
|
||||
additionalCompilerArguments: {}
|
||||
platformArchitecture: {}
|
||||
scriptingBackend: {}
|
||||
il2cppCompilerConfiguration: {}
|
||||
managedStrippingLevel: {}
|
||||
il2cppCodeGeneration: {}
|
||||
managedStrippingLevel:
|
||||
EmbeddedLinux: 1
|
||||
GameCoreScarlett: 1
|
||||
GameCoreXboxOne: 1
|
||||
Nintendo Switch: 1
|
||||
PS4: 1
|
||||
PS5: 1
|
||||
QNX: 1
|
||||
Stadia: 1
|
||||
VisionOS: 1
|
||||
WebGL: 1
|
||||
Windows Store Apps: 1
|
||||
XboxOne: 1
|
||||
iPhone: 1
|
||||
tvOS: 1
|
||||
incrementalIl2cppBuild: {}
|
||||
suppressCommonWarnings: 1
|
||||
allowUnsafeCode: 0
|
||||
useDeterministicCompilation: 1
|
||||
additionalIl2CppArgs:
|
||||
scriptingRuntimeVersion: 1
|
||||
gcIncremental: 1
|
||||
assemblyVersionValidation: 1
|
||||
gcWBarrierValidation: 0
|
||||
apiCompatibilityLevelPerPlatform:
|
||||
Standalone: 3
|
||||
@@ -662,6 +682,7 @@ PlayerSettings:
|
||||
metroFTAName:
|
||||
metroFTAFileTypes: []
|
||||
metroProtocolName:
|
||||
vcxProjDefaultLanguage:
|
||||
XboxOneProductId:
|
||||
XboxOneUpdateKey:
|
||||
XboxOneSandboxId:
|
||||
@@ -689,10 +710,7 @@ PlayerSettings:
|
||||
XboxOneXTitleMemory: 8
|
||||
XboxOneOverrideIdentityName:
|
||||
XboxOneOverrideIdentityPublisher:
|
||||
vrEditorSettings:
|
||||
daydream:
|
||||
daydreamIconForeground: {fileID: 0}
|
||||
daydreamIconBackground: {fileID: 0}
|
||||
vrEditorSettings: {}
|
||||
cloudServicesEnabled:
|
||||
UNet: 1
|
||||
luminIcon:
|
||||
@@ -706,12 +724,22 @@ PlayerSettings:
|
||||
luminVersion:
|
||||
m_VersionCode: 1
|
||||
m_VersionName:
|
||||
hmiPlayerDataPath:
|
||||
hmiForceSRGBBlit: 1
|
||||
embeddedLinuxEnableGamepadInput: 1
|
||||
hmiLogStartupTiming: 0
|
||||
hmiCpuConfiguration:
|
||||
apiCompatibilityLevel: 6
|
||||
activeInputHandler: 2
|
||||
windowsGamepadBackendHint: 0
|
||||
cloudProjectId:
|
||||
framebufferDepthMemorylessMode: 0
|
||||
qualitySettingsNames: []
|
||||
projectName:
|
||||
organizationId:
|
||||
cloudEnabled: 0
|
||||
enableNativePlatformBackendsForNewInputSystem: 1
|
||||
disableOldInputManagerSupport: 0
|
||||
legacyClampBlendShapeWeights: 0
|
||||
hmiLoadingImage: {fileID: 0}
|
||||
platformRequiresReadableAssets: 0
|
||||
virtualTexturingSupportEnabled: 0
|
||||
insecureHttpOption: 0
|
||||
|
||||
@@ -1 +1 @@
|
||||
m_EditorVersion: 2019.4.31f1
|
||||
m_EditorVersion: 2022.3.22f1
|
||||
|
||||
@@ -8,11 +8,11 @@ TagManager:
|
||||
- Default
|
||||
- TransparentFX
|
||||
- Ignore Raycast
|
||||
-
|
||||
- Item
|
||||
- Water
|
||||
- UI
|
||||
-
|
||||
-
|
||||
- reserved6
|
||||
- reserved7
|
||||
- Interactive
|
||||
- Player
|
||||
- PlayerLocal
|
||||
|
||||
8
ProjectSettings/VersionControlSettings.asset
Normal file
8
ProjectSettings/VersionControlSettings.asset
Normal file
@@ -0,0 +1,8 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!890905787 &1
|
||||
VersionControlSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_Mode: Visible Meta Files
|
||||
m_CollabEditorSettings:
|
||||
inProgressEnabled: 1
|
||||
25
README.md
25
README.md
@@ -41,15 +41,34 @@ The repository have separate branches for separate content types, the only diffe
|
||||
1. Check that you have git-lfs installed `git lfs status`
|
||||
2. Pull existing repo `git pull https://gitlab.com/ProcyonLotor/vrchat-template.git` and optionally pull all LFS objects `git lfs fetch --all`
|
||||
(repo will take much more disk space, but will have complete project history)
|
||||
3. (Optional) Some VPM packages might come from Community Repositories,
|
||||
3. (Optional) Some VPM packages may come from Community Repositories,
|
||||
add them from project's [vpm-repositories.txt](./vpm-repositories.txt) file to CreatorCompanion,
|
||||
or run this command in project's folder `FOR /F %L IN (.\vpm-repositories.txt) DO vpm add repo %L`
|
||||
(command requires `vpm` tool installed, see [vpm cli](https://vcc.docs.vrchat.com/vpm/cli/))
|
||||
or run this command in project's folder on Windows
|
||||
|
||||
```cmd
|
||||
FOR /F %l IN (.\vpm-repositories.txt) DO vpm add repo %l
|
||||
```
|
||||
|
||||
and Linux
|
||||
|
||||
```bash
|
||||
for l in $(cat ./vpm-repositories.txt); do vpm add repo "$l"; done
|
||||
```
|
||||
|
||||
> The command requires `vpm` tool installed, see [vpm cli](https://vcc.docs.vrchat.com/vpm/cli/)
|
||||
|
||||
> **IMPORTANT**: When opening a previously worked on project on a new machine, Unity may warn you about script errors and suggest you enter Safe Mode,
|
||||
> this is because VPM has not loaded yet and didn't resolved the required packages, ignore the errors and continue loading.
|
||||
> Sometimes you may need to reopen the project couple times for all packages to resolve and scripts to recompile.
|
||||
|
||||
## Convenience scripts
|
||||
|
||||
The template also have some convenience shell scripts for both Windows and Linux:
|
||||
|
||||
- `./repo-cleanup.*` - Cleans up all untracked trash in the working tree (i.e. `Library/`, `Build/`, etc.)
|
||||
- `./repo-discard.*` - Reverts all changed files back to the state of the last commit
|
||||
- `./repo-reset.*` - Completely resets the state of the local repo to the state of the remote repository (dangerous, use with caution!)
|
||||
|
||||
## License
|
||||
|
||||
For project's license see [LICENSE](./LICENSE) file.
|
||||
|
||||
@@ -2,13 +2,17 @@
|
||||
TITLE Clean up Unity Project repo
|
||||
SETLOCAL EnableDelayedExpansion
|
||||
|
||||
CALL :cleanup --dry-run || GOTO die
|
||||
CD "%~dp0"
|
||||
git rev-parse --is-inside-work-tree >NUL || GOTO die
|
||||
|
||||
git clean -dfX --dry-run "%~dp0." || GOTO die
|
||||
|
||||
ECHO.
|
||||
CHOICE /M "Execute"
|
||||
IF !ERRORLEVEL! NEQ 1 (
|
||||
ECHO Aborting cleanup...
|
||||
) ELSE (
|
||||
CALL :cleanup || GOTO die
|
||||
git clean -dfX "%~dp0." || GOTO die
|
||||
ECHO Done.
|
||||
)
|
||||
|
||||
@@ -19,8 +23,3 @@ EXIT /B 0
|
||||
:die
|
||||
PAUSE
|
||||
EXIT /B %ERRORLEVEL%
|
||||
|
||||
|
||||
:cleanup
|
||||
git clean -dfX %* "%~dp0." || EXIT /B
|
||||
EXIT /B 0
|
||||
|
||||
@@ -1,30 +1,18 @@
|
||||
#!/bin/sh
|
||||
#!/bin/sh -e
|
||||
|
||||
me="$(realpath "$0")"
|
||||
repository="$(dirname "$me")/."
|
||||
repository="$(dirname "$(readlink -f "$0")")/."
|
||||
|
||||
# I have no mouth but i must scream
|
||||
if [ ! -t 0 ]; then
|
||||
if command -v x-terminal-emulator >/dev/null 2>&1; then
|
||||
x-terminal-emulator -e "$me"
|
||||
elif command -v xdg-terminal >/dev/null 2>&1; then
|
||||
xdg-terminal "$me"
|
||||
else
|
||||
echo "Run me from the fucking terminal!" >"${me}.README"
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
cd "${repository}"
|
||||
git rev-parse --is-inside-work-tree >/dev/null
|
||||
|
||||
git clean -dfX --dry-run "${repository}"
|
||||
|
||||
printf "Execute [Y,N]?"; read -r yn
|
||||
if [ "$yn" = "${yn#[Yy]}" ] ;then
|
||||
printf "\nExecute [Y,N]?"; read -r yn
|
||||
if [ "$yn" = "${yn#[Yy]}" ]; then
|
||||
echo "Aborting cleanup..."
|
||||
else
|
||||
git clean -dfX "${repository}"
|
||||
echo "Done."
|
||||
fi
|
||||
|
||||
printf "Press any key to continue..."; read -r _
|
||||
exit 0
|
||||
|
||||
26
repo-discard.cmd
Normal file
26
repo-discard.cmd
Normal file
@@ -0,0 +1,26 @@
|
||||
@ECHO OFF
|
||||
TITLE Restore Unity Project repo
|
||||
SETLOCAL
|
||||
|
||||
CD "%~dp0"
|
||||
git rev-parse --is-inside-work-tree >NUL || GOTO die
|
||||
|
||||
ECHO The following files were changed and will be reverted:
|
||||
git diff --name-only HEAD
|
||||
|
||||
ECHO.
|
||||
CHOICE /M "Execute"
|
||||
IF %ERRORLEVEL% NEQ 1 (
|
||||
ECHO Aborting restore...
|
||||
) ELSE (
|
||||
git restore "%~dp0." || GOTO die
|
||||
ECHO Done.
|
||||
)
|
||||
|
||||
:end
|
||||
PAUSE
|
||||
EXIT /B 0
|
||||
|
||||
:die
|
||||
PAUSE
|
||||
EXIT /B %ERRORLEVEL%
|
||||
19
repo-discard.sh
Executable file
19
repo-discard.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
repository="$(dirname "$(readlink -f "$0")")/."
|
||||
|
||||
cd "${repository}"
|
||||
git rev-parse --is-inside-work-tree >/dev/null
|
||||
|
||||
echo "The following files were changed and will be reverted:"
|
||||
git diff --name-only HEAD
|
||||
|
||||
printf "\nExecute [Y,N]?"; read -r yn
|
||||
if [ "$yn" = "${yn#[Yy]}" ]; then
|
||||
echo "Aborting restore..."
|
||||
else
|
||||
git restore "${repository}"
|
||||
echo "Done."
|
||||
fi
|
||||
|
||||
exit 0
|
||||
33
repo-reset.cmd
Normal file
33
repo-reset.cmd
Normal file
@@ -0,0 +1,33 @@
|
||||
@ECHO OFF
|
||||
TITLE Reset Unity Project repo
|
||||
SETLOCAL
|
||||
|
||||
CD "%~dp0"
|
||||
git rev-parse --is-inside-work-tree >NUL || GOTO die
|
||||
|
||||
FOR /F "delims=" %%x IN ('git rev-parse --abbrev-ref "@{u}" 2^>NUL') DO SET "upstream=%%x"
|
||||
IF NOT DEFINED upstream (
|
||||
ECHO *** ERROR: No upstream is configured for current branch
|
||||
GOTO die
|
||||
)
|
||||
|
||||
ECHO Going to reset current branch to: %upstream%
|
||||
ECHO *** WARNING: All local changes and commits will be lost!
|
||||
|
||||
ECHO.
|
||||
CHOICE /M "Execute"
|
||||
IF %ERRORLEVEL% NEQ 1 (
|
||||
ECHO Aborting reset...
|
||||
) ELSE (
|
||||
git fetch --all || GOTO die
|
||||
git reset --hard "%upstream%" || GOTO die
|
||||
ECHO Done.
|
||||
)
|
||||
|
||||
:end
|
||||
PAUSE
|
||||
EXIT /B 0
|
||||
|
||||
:die
|
||||
PAUSE
|
||||
EXIT /B %ERRORLEVEL%
|
||||
24
repo-reset.sh
Executable file
24
repo-reset.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
git rev-parse --is-inside-work-tree >/dev/null
|
||||
|
||||
upstream="$(git rev-parse --abbrev-ref "@{u}" 2>/dev/null || true)"
|
||||
if [ -z "$upstream" ]; then
|
||||
echo "*** ERROR: No upstream is configured for current branch"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Going to reset current branch to: ${upstream}"
|
||||
echo "*** WARNING: All local changes and commits will be lost!"
|
||||
|
||||
printf "\nExecute [Y,N]?"; read -r yn
|
||||
if [ "$yn" = "${yn#[Yy]}" ]; then
|
||||
echo "Aborting reset..."
|
||||
else
|
||||
git fetch --all
|
||||
git reset --hard "$upstream"
|
||||
echo "Done."
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user