Converted everything to Meta XR All in One to make Eye-Tracking work again
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e651dbb3fbac04af2b8f5abf007ddc23, type: 3}
|
||||
m_Name: DefaultNetworkPrefabs
|
||||
m_EditorClassIdentifier:
|
||||
IsDefault: 0
|
||||
List: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3e41243a99cc8f342a89d3b6f8df7d85
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49a0fc43c6b2eb342879f096f6563259
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0bfde92e0a2190c4ca32f6fb0a0c73ce, type: 3}
|
||||
m_Name: MetaXRProjectSettings
|
||||
m_EditorClassIdentifier:
|
||||
boolProperties:
|
||||
keys:
|
||||
- Meta.XR.SDK.UsageSettings.UsesProjectSetupTool
|
||||
- Meta.XR.SDK.UsageSettings.UsesBuildingBlocks
|
||||
values: 0101
|
||||
intProperties:
|
||||
keys: []
|
||||
values:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ccb94d56eea46c44689330f7e766d944
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3a111cf2a0b25d94da4033c7b44e6b22
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,48 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 05d394ae2a81edd4cbc3c51917e766e3, type: 3}
|
||||
m_Name: OculusProjectConfig
|
||||
m_EditorClassIdentifier:
|
||||
targetDeviceTypes: 02000000030000000400000005000000
|
||||
allowOptional3DofHeadTracking: 0
|
||||
handTrackingSupport: 1
|
||||
handTrackingFrequency: 0
|
||||
handTrackingVersion: 2
|
||||
anchorSupport: 1
|
||||
sharedAnchorSupport: 0
|
||||
renderModelSupport: 0
|
||||
trackedKeyboardSupport: 0
|
||||
bodyTrackingSupport: 0
|
||||
faceTrackingSupport: 0
|
||||
eyeTrackingSupport: 2
|
||||
virtualKeyboardSupport: 0
|
||||
colocationSessionSupport: 0
|
||||
sceneSupport: 2
|
||||
boundaryVisibilitySupport: 0
|
||||
disableBackups: 1
|
||||
enableNSCConfig: 1
|
||||
securityXmlPath:
|
||||
horizonOsSdkEnabled: 0
|
||||
minHorizonOsSdkVersion: 68
|
||||
targetHorizonOsSdkVersion: 74
|
||||
skipUnneededShaders: 0
|
||||
enableIL2CPPLTO: 0
|
||||
removeGradleManifest: 1
|
||||
focusAware: 1
|
||||
requiresSystemKeyboard: 0
|
||||
experimentalFeaturesEnabled: 0
|
||||
insightPassthroughEnabled: 0
|
||||
_insightPassthroughSupport: 0
|
||||
_processorFavor: 0
|
||||
systemSplashScreen: {fileID: 0}
|
||||
systemSplashScreenType: 0
|
||||
_systemLoadingScreenBackground: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c95ab815551a844e9143f9d35d39c27
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:installLocation="auto">
|
||||
<uses-permission android:name="com.oculus.permission.EYE_TRACKING" />
|
||||
<application android:label="@string/app_name" android:icon="@mipmap/app_icon" android:allowBackup="false">
|
||||
<activity android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" android:configChanges="locale|fontScale|keyboard|keyboardHidden|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode" android:launchMode="singleTask" android:name="com.unity3d.player.UnityPlayerGameActivity" android:excludeFromRecents="true" android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
<category android:name="com.oculus.intent.category.VR" />
|
||||
</intent-filter>
|
||||
<meta-data android:name="com.oculus.vr.focusaware" android:value="true" />
|
||||
</activity>
|
||||
<meta-data android:name="unityplayer.SkipPermissionsDialog" android:value="false" />
|
||||
<meta-data android:name="com.oculus.ossplash.background" android:value="black" />
|
||||
<meta-data android:name="com.oculus.telemetry.project_guid" android:value="1d85bc1d-cdeb-4f06-9806-f90917936e68" />
|
||||
<meta-data android:name="com.oculus.supportedDevices" android:value="quest|quest2|questpro|quest3|quest3s" tools:replace="android:value" />
|
||||
</application>
|
||||
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
|
||||
</manifest>
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3dddb481d0466143bf7643e76a95d4f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,42 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a7d75bea1662418ab5f9e0c22110bc09, type: 3}
|
||||
m_Name: ImmersiveDebuggerSettings
|
||||
m_EditorClassIdentifier:
|
||||
debugTypes: []
|
||||
immersiveDebuggerEnabled: 0
|
||||
immersiveDebuggerDisplayAtStartup: 0
|
||||
showInspectors: 0
|
||||
showConsole: 0
|
||||
followOverride: 1
|
||||
rotateOverride: 0
|
||||
showInfoLog: 0
|
||||
showWarningLog: 1
|
||||
showErrorLog: 1
|
||||
collapsedIdenticalLogEntries: 0
|
||||
maximumNumberOfLogEntries: 1000
|
||||
panelDistance: 1
|
||||
createEventSystem: 1
|
||||
automaticLayerCullingUpdate: 1
|
||||
panelLayer: 20
|
||||
meshRendererLayer: 21
|
||||
overlayDepth: 10
|
||||
useOverlay: 1
|
||||
inspectedDataEnabled:
|
||||
inspectedDataAssets: []
|
||||
useCustomIntegrationConfig: 0
|
||||
customIntegrationConfigClassName:
|
||||
hierarchyViewShowsPrivateMembers: 0
|
||||
clickButton: 8193
|
||||
toggleFollowTranslationButton: 0
|
||||
toggleFollowRotationButton: 0
|
||||
immersiveDebuggerToggleDisplayButton: 2
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de97666618756244580e73470595c48a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8922a6ca86889d84f8371a29d37b6dc8, type: 3}
|
||||
m_Name: InputActions
|
||||
m_EditorClassIdentifier:
|
||||
InputActionDefinitions: []
|
||||
InputActionSets: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6ea5acddf509bf45b2e6c1330f8c5e9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 60e5406209e5ed147bb02ed71f9c40f3, type: 3}
|
||||
m_Name: MetaXRAcousticMaterialMapping
|
||||
m_EditorClassIdentifier:
|
||||
mapping: []
|
||||
fallbackMaterial: {fileID: 0}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6787a4bdfa3541c4ba80020c4d89354f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,18 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 2b76bcf034ab49e4a8cd30239a716460, type: 3}
|
||||
m_Name: MetaXRAcousticSettings
|
||||
m_EditorClassIdentifier:
|
||||
acousticModel: -1
|
||||
diffractionEnabled: 1
|
||||
excludeTags: []
|
||||
mapBakeWriteGeo: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 21faac62c186ad44a95714c667aac72e
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,15 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f3fe6e38ac2d4c22b04340d6eda2a47e, type: 3}
|
||||
m_Name: MetaXRAudioSettings
|
||||
m_EditorClassIdentifier:
|
||||
voiceLimit: 64
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab386c1fb45709b40b7ca4f33dbb824c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 20553fac56ec59645857c0732b787431, type: 3}
|
||||
m_Name: OVRBuildConfig
|
||||
m_EditorClassIdentifier:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc1508e75cade39418a1f4592b018fea
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,19 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: efa1458c2bc55e04b872c61942be2866, type: 3}
|
||||
m_Name: OVROverlayCanvasSettings
|
||||
m_EditorClassIdentifier:
|
||||
_transparentImposterShader: {fileID: 0}
|
||||
_opaqueImposterShader: {fileID: 0}
|
||||
MaxSimultaneousCanvases: 1
|
||||
CanvasRenderLayer: 31
|
||||
CanvasLayer: -1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb3946a72bdd5e049a8b290520de31d9
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: cd7bb81df5b74b34dadbf531f381a26b, type: 3}
|
||||
m_Name: OVRPlatformToolSettings
|
||||
m_EditorClassIdentifier:
|
||||
riftRedistPackages: []
|
||||
languagePackDirectory:
|
||||
assetConfigs:
|
||||
- configList: []
|
||||
- configList: []
|
||||
- configList: []
|
||||
targetPlatform: 3
|
||||
runOvrLint: 1
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f4088305adfe1104c81e8f8151e671c8
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,24 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3863570e7e6387a40ae4f323d83291e5, type: 3}
|
||||
m_Name: OculusRuntimeSettings
|
||||
m_EditorClassIdentifier:
|
||||
handSkeletonVersion: 1
|
||||
colorSpace: 7
|
||||
requestsVisualFaceTracking: 1
|
||||
requestsAudioFaceTracking: 1
|
||||
enableFaceTrackingVisemesOutput: 0
|
||||
telemetryProjectGuid: 1d85bc1d-cdeb-4f06-9806-f90917936e68
|
||||
bodyTrackingFidelity: 1
|
||||
bodyTrackingJointSet: 0
|
||||
allowVisibilityMesh: 1
|
||||
QuestVisibilityMeshOverriden: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a26d5740cd5bdfb4dad352b97053752f
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94394582ec331074e97c3bfb147a834d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 03bc68f14d65e7747a59d5ff74bd199b, type: 3}
|
||||
m_Name: OculusLoader
|
||||
m_EditorClassIdentifier:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6a05ae7e01c102246912c2cbc70d6136
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,36 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c353a8f1e58cf884584123914fe63cd5, type: 3}
|
||||
m_Name: OculusSettings
|
||||
m_EditorClassIdentifier:
|
||||
m_StereoRenderingModeDesktop: 1
|
||||
m_StereoRenderingModeAndroid: 2
|
||||
SharedDepthBuffer: 1
|
||||
DepthSubmission: 0
|
||||
DashSupport: 1
|
||||
LowOverheadMode: 0
|
||||
OptimizeBufferDiscards: 1
|
||||
PhaseSync: 1
|
||||
SymmetricProjection: 1
|
||||
SubsampledLayout: 0
|
||||
FoveatedRenderingMethod: 0
|
||||
LateLatching: 0
|
||||
LateLatchingDebug: 0
|
||||
EnableTrackingOriginStageMode: 0
|
||||
SpaceWarp: 0
|
||||
TargetQuest2: 1
|
||||
TargetQuestPro: 1
|
||||
TargetQuest3: 0
|
||||
TargetQuest3S: 0
|
||||
SystemSplashScreen: {fileID: 0}
|
||||
UseStickControlThumbsticks: 0
|
||||
OptimizeMultiviewRenderRegions: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 734f15aa67f6c994aabd946b919ab4ea
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -12,6 +12,10 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 975057b4fdcfb8142b3080d19a5cc712, type: 3}
|
||||
m_Name: OpenXR Editor Settings
|
||||
m_EditorClassIdentifier:
|
||||
Keys:
|
||||
Values: []
|
||||
Keys: 0100000007000000
|
||||
Values:
|
||||
- featureSets:
|
||||
- com.meta.openxr.featureset.metaxr
|
||||
- featureSets:
|
||||
- com.meta.openxr.featureset.metaxr
|
||||
m_vulkanAdditionalGraphicsQueue: 0
|
||||
|
||||
@@ -200,6 +200,72 @@ MonoBehaviour:
|
||||
company: Unity
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-7026997583565779077
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 81954520b8bbd2f458104fe69f5a7680, type: 3}
|
||||
m_Name: MetaXRSpaceWarp Android
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 0
|
||||
nameUi: Meta XR Space Warp
|
||||
version: 1.0.0
|
||||
featureIdInternal: com.meta.openxr.feature.spacewarp
|
||||
openxrExtensionStrings: XR_FB_space_warp
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-6852282064108556466
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1927c045052a06d49a9b21fdcaa26db6, type: 3}
|
||||
m_Name: MetaXRFeature Standalone
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 1
|
||||
nameUi: Meta XR Feature
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.meta.openxr.feature.metaxr
|
||||
openxrExtensionStrings: 'XR_KHR_vulkan_enable XR_KHR_D3D11_enable XR_OCULUS_common_reference_spaces
|
||||
XR_FB_display_refresh_rate XR_EXT_performance_settings XR_FB_composition_layer_image_layout
|
||||
XR_KHR_android_surface_swapchain XR_FB_android_surface_swapchain_create XR_KHR_composition_layer_color_scale_bias
|
||||
XR_FB_color_space XR_EXT_hand_tracking XR_FB_swapchain_update_state XR_FB_swapchain_update_state_opengl_es
|
||||
XR_FB_swapchain_update_state_vulkan XR_FB_composition_layer_alpha_blend XR_KHR_composition_layer_depth
|
||||
XR_KHR_composition_layer_cylinder XR_KHR_composition_layer_cube XR_KHR_composition_layer_equirect2
|
||||
XR_KHR_convert_timespec_time XR_KHR_visibility_mask XR_FB_render_model XR_FB_spatial_entity
|
||||
XR_FB_spatial_entity_user XR_FB_spatial_entity_query XR_FB_spatial_entity_storage
|
||||
XR_FB_spatial_entity_storage_batch XR_META_spatial_entity_mesh XR_META_performance_metrics
|
||||
XR_FB_spatial_entity_sharing XR_FB_scene XR_FB_spatial_entity_container XR_FB_scene_capture
|
||||
XR_FB_face_tracking XR_FB_face_tracking2 XR_FB_eye_tracking XR_FB_eye_tracking_social
|
||||
XR_FB_body_tracking XR_META_body_tracking_full_body XR_META_body_tracking_calibration
|
||||
XR_META_body_tracking_fidelity XR_FB_keyboard_tracking XR_META_virtual_keyboard
|
||||
XR_FB_passthrough XR_FB_triangle_mesh XR_FB_passthrough_keyboard_hands XR_META_passthrough_layer_resumed_event
|
||||
XR_META_passthrough_color_lut XR_META_passthrough_preferences XR_OCULUS_audio_device_guid
|
||||
XR_FB_common_events XR_FB_hand_tracking_capsules XR_FB_hand_tracking_mesh XR_FB_hand_tracking_aim
|
||||
XR_FB_touch_controller_pro XR_FB_touch_controller_proximity XR_FB_composition_layer_depth_test
|
||||
XR_FB_haptic_amplitude_envelope XR_FB_haptic_pcm XR_META_local_dimming XR_META_hand_tracking_wide_motion_mode
|
||||
XR_EXT_hand_tracking_data_source XR_EXT_hand_joints_motion_range XR_META_touch_controller_plus
|
||||
XR_META_simultaneous_hands_and_controllers XR_MSFT_hand_interaction XR_EXT_hand_interaction
|
||||
XR_FB_hand_tracking_confidence XR_META_detached_controllers XR_LOGITECH_mx_ink_stylus_interaction
|
||||
XR_META_colocation_discovery XR_META_spatial_entity_sharing XR_META_spatial_entity_group_sharing
|
||||
XR_EXT_debug_utils XR_META_dynamic_object_tracker XR_META_dynamic_object_keyboard
|
||||
XR_META_hand_tracking_microgestures XR_META_spatial_entity_persistence XR_META_spatial_entity_discovery
|
||||
XR_META_boundary_visibility XR_METAX1_face_tracking_visemes XR_META_headset_id
|
||||
XR_FB_composition_layer_settings XR_META_automatic_layer_filter XR_EXT_future
|
||||
XR_META_recommended_layer_resolution XR_EXT_local_floor '
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-6746148815201299364
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -292,7 +358,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: c4b862ee14fb479fbfe5fffe655d3ed3, type: 3}
|
||||
m_Name: MetaQuestTouchProControllerProfile Android
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 0
|
||||
m_enabled: 1
|
||||
nameUi: Meta Quest Touch Pro Controller Profile
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.unity.openxr.feature.input.metaquestpro
|
||||
@@ -320,6 +386,67 @@ MonoBehaviour:
|
||||
company: Unity
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-3250008122843910383
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3d28f705476c80d47acb3dfade3d3142, type: 3}
|
||||
m_Name: MetaXRFoveationFeature Android
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 1
|
||||
nameUi: Meta XR Foveation
|
||||
version: 1.0.0
|
||||
featureIdInternal: com.meta.openxr.feature.foveation
|
||||
openxrExtensionStrings: 'XR_FB_foveation XR_FB_foveation_configuration XR_FB_foveation_vulkan '
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-2963435292702405510
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e573a2aed6698b047aff95224499b722, type: 3}
|
||||
m_Name: MetaXREyeTrackedFoveationFeature Android
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 0
|
||||
nameUi: Meta XR Eye Tracked Foveation
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.meta.openxr.feature.eyetrackedfoveation
|
||||
openxrExtensionStrings: XR_META_foveation_eye_tracked XR_FB_eye_tracking_social
|
||||
XR_META_vulkan_swapchain_create_info
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-2854134716234179154
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4710975c7840e7d499bbb3757c22b0a5, type: 3}
|
||||
m_Name: MetaXRSubsampledLayout Android
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 0
|
||||
nameUi: Meta XR Subsampled Layout
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.meta.openxr.feature.subsampledLayout
|
||||
openxrExtensionStrings: XR_META_vulkan_swapchain_create_info
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-2713585947379825467
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -400,6 +527,26 @@ MonoBehaviour:
|
||||
company: Unity
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-1208106951591793005
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4710975c7840e7d499bbb3757c22b0a5, type: 3}
|
||||
m_Name: MetaXRSubsampledLayout Standalone
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 0
|
||||
nameUi: Meta XR Subsampled Layout
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.meta.openxr.feature.subsampledLayout
|
||||
openxrExtensionStrings: XR_META_vulkan_swapchain_create_info
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &-902117239244671484
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -447,6 +594,10 @@ MonoBehaviour:
|
||||
- {fileID: -6746148815201299364}
|
||||
- {fileID: 4749795405214194693}
|
||||
- {fileID: -2053598572320957723}
|
||||
- {fileID: 1121968728448107383}
|
||||
- {fileID: -6852282064108556466}
|
||||
- {fileID: 2565368168790988274}
|
||||
- {fileID: -1208106951591793005}
|
||||
- {fileID: -7166959036619122442}
|
||||
- {fileID: 6948044492930209007}
|
||||
- {fileID: 939373418795891485}
|
||||
@@ -558,6 +709,27 @@ MonoBehaviour:
|
||||
priority: 0
|
||||
required: 0
|
||||
ignoreValidationErrors: 0
|
||||
--- !u!114 &1121968728448107383
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e573a2aed6698b047aff95224499b722, type: 3}
|
||||
m_Name: MetaXREyeTrackedFoveationFeature Standalone
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 0
|
||||
nameUi: Meta XR Eye Tracked Foveation
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.meta.openxr.feature.eyetrackedfoveation
|
||||
openxrExtensionStrings: XR_META_foveation_eye_tracked XR_FB_eye_tracking_social
|
||||
XR_META_vulkan_swapchain_create_info
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &2036943342453295590
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -618,6 +790,26 @@ MonoBehaviour:
|
||||
company: Unity
|
||||
priority: -100
|
||||
required: 0
|
||||
--- !u!114 &2565368168790988274
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3d28f705476c80d47acb3dfade3d3142, type: 3}
|
||||
m_Name: MetaXRFoveationFeature Standalone
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 1
|
||||
nameUi: Meta XR Foveation
|
||||
version: 1.0.0
|
||||
featureIdInternal: com.meta.openxr.feature.foveation
|
||||
openxrExtensionStrings: 'XR_FB_foveation XR_FB_foveation_configuration XR_FB_foveation_vulkan '
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &3209235803406858993
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -662,6 +854,11 @@ MonoBehaviour:
|
||||
- {fileID: -9013704178778651535}
|
||||
- {fileID: 7754108324867789860}
|
||||
- {fileID: -3585934884514690276}
|
||||
- {fileID: -2963435292702405510}
|
||||
- {fileID: 3530062270184310264}
|
||||
- {fileID: -3250008122843910383}
|
||||
- {fileID: -7026997583565779077}
|
||||
- {fileID: -2854134716234179154}
|
||||
- {fileID: -4499269554590395740}
|
||||
- {fileID: 5919399070564312567}
|
||||
- {fileID: 4790688419576402574}
|
||||
@@ -679,6 +876,52 @@ MonoBehaviour:
|
||||
m_optimizeBufferDiscards: 0
|
||||
m_symmetricProjection: 0
|
||||
m_foveatedRenderingApi: 0
|
||||
--- !u!114 &3530062270184310264
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1927c045052a06d49a9b21fdcaa26db6, type: 3}
|
||||
m_Name: MetaXRFeature Android
|
||||
m_EditorClassIdentifier:
|
||||
m_enabled: 1
|
||||
nameUi: Meta XR Feature
|
||||
version: 0.0.1
|
||||
featureIdInternal: com.meta.openxr.feature.metaxr
|
||||
openxrExtensionStrings: 'XR_KHR_vulkan_enable XR_KHR_D3D11_enable XR_OCULUS_common_reference_spaces
|
||||
XR_FB_display_refresh_rate XR_EXT_performance_settings XR_FB_composition_layer_image_layout
|
||||
XR_KHR_android_surface_swapchain XR_FB_android_surface_swapchain_create XR_KHR_composition_layer_color_scale_bias
|
||||
XR_FB_color_space XR_EXT_hand_tracking XR_FB_swapchain_update_state XR_FB_swapchain_update_state_opengl_es
|
||||
XR_FB_swapchain_update_state_vulkan XR_FB_composition_layer_alpha_blend XR_KHR_composition_layer_depth
|
||||
XR_KHR_composition_layer_cylinder XR_KHR_composition_layer_cube XR_KHR_composition_layer_equirect2
|
||||
XR_KHR_convert_timespec_time XR_KHR_visibility_mask XR_FB_render_model XR_FB_spatial_entity
|
||||
XR_FB_spatial_entity_user XR_FB_spatial_entity_query XR_FB_spatial_entity_storage
|
||||
XR_FB_spatial_entity_storage_batch XR_META_spatial_entity_mesh XR_META_performance_metrics
|
||||
XR_FB_spatial_entity_sharing XR_FB_scene XR_FB_spatial_entity_container XR_FB_scene_capture
|
||||
XR_FB_face_tracking XR_FB_face_tracking2 XR_FB_eye_tracking XR_FB_eye_tracking_social
|
||||
XR_FB_body_tracking XR_META_body_tracking_full_body XR_META_body_tracking_calibration
|
||||
XR_META_body_tracking_fidelity XR_FB_keyboard_tracking XR_META_virtual_keyboard
|
||||
XR_FB_passthrough XR_FB_triangle_mesh XR_FB_passthrough_keyboard_hands XR_META_passthrough_layer_resumed_event
|
||||
XR_META_passthrough_color_lut XR_META_passthrough_preferences XR_OCULUS_audio_device_guid
|
||||
XR_FB_common_events XR_FB_hand_tracking_capsules XR_FB_hand_tracking_mesh XR_FB_hand_tracking_aim
|
||||
XR_FB_touch_controller_pro XR_FB_touch_controller_proximity XR_FB_composition_layer_depth_test
|
||||
XR_FB_haptic_amplitude_envelope XR_FB_haptic_pcm XR_META_local_dimming XR_META_hand_tracking_wide_motion_mode
|
||||
XR_EXT_hand_tracking_data_source XR_EXT_hand_joints_motion_range XR_META_touch_controller_plus
|
||||
XR_META_simultaneous_hands_and_controllers XR_MSFT_hand_interaction XR_EXT_hand_interaction
|
||||
XR_FB_hand_tracking_confidence XR_META_detached_controllers XR_LOGITECH_mx_ink_stylus_interaction
|
||||
XR_META_colocation_discovery XR_META_spatial_entity_sharing XR_META_spatial_entity_group_sharing
|
||||
XR_EXT_debug_utils XR_META_dynamic_object_tracker XR_META_dynamic_object_keyboard
|
||||
XR_META_hand_tracking_microgestures XR_META_spatial_entity_persistence XR_META_spatial_entity_discovery
|
||||
XR_META_boundary_visibility XR_METAX1_face_tracking_visemes XR_META_headset_id
|
||||
XR_FB_composition_layer_settings XR_META_automatic_layer_filter XR_EXT_future
|
||||
XR_META_recommended_layer_resolution XR_EXT_local_floor '
|
||||
company: Meta
|
||||
priority: 0
|
||||
required: 0
|
||||
--- !u!114 &4749795405214194693
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: SimpleGreen
|
||||
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BlendOp: 0
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.005
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _SampleGI: 0
|
||||
- _Smoothness: 0.5
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 0, g: 1, b: 0, a: 1}
|
||||
- _Color: {r: 0, g: 1, b: 0, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &2862320579475647339
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a317d38c3c9fba940b52f6e278c081d0
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,138 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: SimpleRed
|
||||
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap:
|
||||
RenderType: Opaque
|
||||
disabledShaderPasses:
|
||||
- MOTIONVECTORS
|
||||
m_LockedProperties:
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_Lightmaps:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_LightmapsInd:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- unity_ShadowMasks:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AddPrecomputedVelocity: 0
|
||||
- _AlphaClip: 0
|
||||
- _AlphaToMask: 0
|
||||
- _Blend: 0
|
||||
- _BlendModePreserveSpecular: 1
|
||||
- _BlendOp: 0
|
||||
- _BumpScale: 1
|
||||
- _ClearCoatMask: 0
|
||||
- _ClearCoatSmoothness: 0
|
||||
- _Cull: 2
|
||||
- _Cutoff: 0.5
|
||||
- _DetailAlbedoMapScale: 1
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _DstBlendAlpha: 0
|
||||
- _EnvironmentReflections: 1
|
||||
- _GlossMapScale: 0
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 0
|
||||
- _Metallic: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.005
|
||||
- _QueueOffset: 0
|
||||
- _ReceiveShadows: 1
|
||||
- _SampleGI: 0
|
||||
- _Smoothness: 0.5
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _SrcBlendAlpha: 1
|
||||
- _Surface: 0
|
||||
- _WorkflowMode: 1
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 0, b: 0, a: 1}
|
||||
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
m_AllowLocking: 1
|
||||
--- !u!114 &8035938431402929200
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
version: 9
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 28d1887ee6318764fa8c2c30dedb23cf
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3142c30d660087344b257296a1412929
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,71 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &3613016419720942324
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1341956532432994033, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6821967783461365837, guid: 0dfe8d97202406e4b86e4a51f0805d40,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Offline_Player_Avatar Variant
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents:
|
||||
- {fileID: 1063877580951747408, guid: 0dfe8d97202406e4b86e4a51f0805d40, type: 3}
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 0dfe8d97202406e4b86e4a51f0805d40, type: 3}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39438b27ddcab89458c2794ffd37fafa
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+1320
-751
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 91bfb95032feb044c81a3964f5553fec
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0572ea139ec37b84b88a8d21771f7f1a
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ce8bfcca83c9be4695157a0d2005df4
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -6,6 +6,7 @@ using Supabase.Gotrue;
|
||||
using Supabase.Gotrue.Exceptions;
|
||||
using Client = Supabase.Client;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using TMPro;
|
||||
|
||||
namespace GhostSystem
|
||||
{
|
||||
@@ -25,6 +26,8 @@ namespace GhostSystem
|
||||
|
||||
public static event Action OnSuperbaseReady;
|
||||
|
||||
public TMP_Text textbox;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Initialize().Forget();
|
||||
@@ -82,11 +85,13 @@ namespace GhostSystem
|
||||
try
|
||||
{
|
||||
await supabase.InitializeAsync();
|
||||
textbox.text += "\n\rSupabase initialized.";
|
||||
Debug.Log("✅ Supabase initialized.");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.LogError($"❌ Initialization failed: {ex}");
|
||||
textbox.text += "\n\rInitialization failed";
|
||||
}
|
||||
|
||||
await AuthenticateAsync(email, password);
|
||||
@@ -98,6 +103,7 @@ namespace GhostSystem
|
||||
try
|
||||
{
|
||||
await supabase.Auth.SignIn(email, password);
|
||||
textbox.text += "\n\rSign-in successful";
|
||||
Debug.Log("🔓 Sign-in successful");
|
||||
}
|
||||
catch (Exception authEx)
|
||||
@@ -106,10 +112,12 @@ namespace GhostSystem
|
||||
try
|
||||
{
|
||||
await supabase.Auth.SignUp(email, password);
|
||||
textbox.text += "\n\rSign-up successful";
|
||||
Debug.Log("🆕 Sign-up successful");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
textbox.text += $"\n\rAuthentication failed: {ex}";
|
||||
Debug.LogError($"❌ Authentication failed: {ex}");
|
||||
}
|
||||
}
|
||||
@@ -127,9 +135,15 @@ namespace GhostSystem
|
||||
await www.SendWebRequest();
|
||||
|
||||
if (www.result == UnityWebRequest.Result.Success)
|
||||
{
|
||||
textbox.text += $"\n\rSupabase health: {www.downloadHandler.text}";
|
||||
Debug.Log($"✅ Supabase health: {www.downloadHandler.text}");
|
||||
}
|
||||
else
|
||||
{
|
||||
textbox.text += $"\n\rSupabase health check failed: {www.error}";
|
||||
Debug.LogError($"❌ Supabase health check failed: {www.error}");
|
||||
}
|
||||
}
|
||||
|
||||
private async UniTask CheckGoogleConnectionAsync()
|
||||
@@ -138,9 +152,15 @@ namespace GhostSystem
|
||||
await www.SendWebRequest();
|
||||
|
||||
if (www.result == UnityWebRequest.Result.Success)
|
||||
{
|
||||
textbox.text += "\n\rGoogle request succeeded.";
|
||||
Debug.Log("✅ Google request succeeded.");
|
||||
}
|
||||
else
|
||||
{
|
||||
textbox.text += $"\n\rGoogle connection failed: {www.error}";
|
||||
Debug.LogError($"❌ Google connection failed: {www.error}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.Globalization;
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
public class InvisibleForLocalPlayer : NetworkBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
foreach (var r in GetComponentsInChildren<Renderer>())
|
||||
{
|
||||
r.enabled = !IsOwner;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 819e00be8a4fb934ba765757fac39145
|
||||
@@ -0,0 +1,47 @@
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
public class LocalOnly : NetworkBehaviour
|
||||
{
|
||||
public Behaviour[] componentsToDisable;
|
||||
public GameObject[] objectsToDisable;
|
||||
public GameObject[] objectsToTag;
|
||||
|
||||
public override void OnNetworkSpawn()
|
||||
{
|
||||
if (!IsOwner)
|
||||
{
|
||||
|
||||
foreach (var comp in componentsToDisable)
|
||||
{
|
||||
if (comp != null) comp.enabled = false;
|
||||
}
|
||||
|
||||
foreach (var obj in objectsToDisable)
|
||||
{
|
||||
if (obj != null) obj.SetActive(false);
|
||||
}
|
||||
|
||||
foreach(var obj in objectsToTag)
|
||||
{
|
||||
if (obj != null)
|
||||
{
|
||||
obj.tag = "RemotePlayer";
|
||||
obj.layer = 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Kamera-Tags sicherstellen
|
||||
Camera cam = GetComponentInChildren<Camera>();
|
||||
if (cam != null && cam.CompareTag("MainCamera"))
|
||||
cam.enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Nur der lokale Spieler darf "MainCamera" haben
|
||||
Camera cam = GetComponentInChildren<Camera>();
|
||||
if (cam != null)
|
||||
cam.tag = "MainCamera";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3b7b9f0672db49f42af8fec3493cb307
|
||||
@@ -0,0 +1,40 @@
|
||||
using GhostSystem;
|
||||
using NUnit.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
public class LocalPlayerReference : NetworkBehaviour
|
||||
{
|
||||
public static LocalPlayerReference Instance { get; private set; }
|
||||
|
||||
public List<Transform> myObjects;
|
||||
|
||||
public override void OnNetworkSpawn()
|
||||
{
|
||||
if (IsOwner)
|
||||
{
|
||||
Instance = this;
|
||||
|
||||
Debug.Log("[LocalPlayerReference] Lokaler Spieler registriert.");
|
||||
|
||||
// Optional: Liste von Transforms vorbereiten
|
||||
GhostRecorderBatch ghostRecorder = FindFirstObjectByType<GhostRecorderBatch>();
|
||||
if (ghostRecorder != null)
|
||||
{
|
||||
foreach (Transform obj in myObjects)
|
||||
{
|
||||
ghostRecorder.TrackedObjects.Add(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
if (IsOwner && Instance == this)
|
||||
{
|
||||
Instance = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3717a60ecb65b8d4ca6b2937e711acda
|
||||
@@ -0,0 +1,61 @@
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(CharacterController))]
|
||||
public class OVRStickAndRoomscaleMovement : NetworkBehaviour
|
||||
{
|
||||
public float speed = 2.0f;
|
||||
public float gravity = -9.81f;
|
||||
public Transform cameraTransform; // CenterEyeAnchor
|
||||
public Transform rigRoot; // OVRCameraRig Root – wichtig für Höhe!
|
||||
|
||||
private CharacterController characterController;
|
||||
private Vector3 velocity;
|
||||
|
||||
public float minHeight = 1.0f; // Kleinster Collider
|
||||
public float maxHeight = 2.2f; // Größter Collider
|
||||
public float skinWidth = 0.05f; // Charaktercontroller-Skin
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (!IsOwner)
|
||||
return;
|
||||
|
||||
characterController = GetComponent<CharacterController>();
|
||||
|
||||
if (cameraTransform == null && Camera.main != null)
|
||||
cameraTransform = Camera.main.transform;
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (!IsOwner) return;
|
||||
|
||||
// 1. Real-World Position des Headsets bestimmen
|
||||
Vector3 headLocalPos = rigRoot.InverseTransformPoint(cameraTransform.position);
|
||||
|
||||
// 2. Höhe anpassen (Stehen, Hocken)
|
||||
float height = Mathf.Clamp(headLocalPos.y, minHeight, maxHeight);
|
||||
characterController.height = height;
|
||||
|
||||
// 3. Center des CharacterControllers so setzen, dass er immer den Spieler umschließt
|
||||
characterController.center = new Vector3(headLocalPos.x, height / 2f + characterController.skinWidth, headLocalPos.z);
|
||||
|
||||
// 4. Stick Movement
|
||||
Vector2 input = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick);
|
||||
Vector3 move = cameraTransform.forward * input.y + cameraTransform.right * input.x;
|
||||
move.y = 0;
|
||||
move.Normalize();
|
||||
|
||||
characterController.Move(move * speed * Time.deltaTime);
|
||||
|
||||
// 5. Gravity
|
||||
velocity.y += gravity * Time.deltaTime;
|
||||
characterController.Move(velocity * Time.deltaTime);
|
||||
|
||||
if (characterController.isGrounded)
|
||||
{
|
||||
velocity.y = 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c42ee6f42a0ca394b8ccd34d59ded058
|
||||
@@ -0,0 +1,51 @@
|
||||
using System.Globalization;
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(CharacterController))]
|
||||
public class OVRStickMovement : NetworkBehaviour
|
||||
{
|
||||
public float speed = 2.0f;
|
||||
public float gravity = -9.81f;
|
||||
public Transform cameraTransform;
|
||||
|
||||
private CharacterController characterController;
|
||||
private Vector3 velocity;
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (!IsOwner)
|
||||
{
|
||||
Debug.LogError("Ja, ich bin Owner!");
|
||||
return;
|
||||
}
|
||||
characterController = GetComponent<CharacterController>();
|
||||
|
||||
if (cameraTransform == null && Camera.main != null)
|
||||
cameraTransform = Camera.main.transform;
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if(!IsOwner) return;
|
||||
// Linker Stick auslesen (PrimaryThumbstick)
|
||||
Vector2 input = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick);
|
||||
|
||||
// Bewegung relativ zur Kameraausrichtung
|
||||
Vector3 move = cameraTransform.forward * input.y + cameraTransform.right * input.x;
|
||||
move.y = 0; // keine vertikale Bewegung
|
||||
move.Normalize();
|
||||
|
||||
characterController.Move(move * speed * Time.deltaTime);
|
||||
|
||||
// Gravity anwenden
|
||||
velocity.y += gravity * Time.deltaTime;
|
||||
characterController.Move(velocity * Time.deltaTime);
|
||||
|
||||
// Reset, wenn auf dem Boden
|
||||
if (characterController.isGrounded)
|
||||
{
|
||||
velocity.y = 0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b63991377c56bbc4abb6101f28a0f57c
|
||||
@@ -0,0 +1,14 @@
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayerSpawner : NetworkBehaviour
|
||||
{
|
||||
public override void OnNetworkSpawn()
|
||||
{
|
||||
if (IsOwner)
|
||||
{
|
||||
var spawnPoints = GameObject.FindGameObjectsWithTag("SpawnPoint");
|
||||
transform.position = spawnPoints[Random.Range(0, spawnPoints.Length)].transform.position;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46b4f915883259f4fbff20729a599ded
|
||||
Reference in New Issue
Block a user