Updated watch model

WIP: working on trying to move watch position to right wrist and follow its position and rotation
This commit is contained in:
Cody Wright 2024-01-08 15:01:39 -05:00
parent 2316a316a0
commit 1ade2108d7
9 changed files with 708 additions and 7 deletions

View File

@ -1842,6 +1842,7 @@ Transform:
- {fileID: 4883245426080499922}
- {fileID: 2527973170083012614}
- {fileID: 2139754906748225194}
- {fileID: 2746058932850546719}
m_Father: {fileID: 5850893442515592724}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4678866017896952928
@ -4470,6 +4471,112 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4253f32900bcc4d499d675566142ded0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &8497702482776648944
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 7893157575433883934}
m_Modifications:
- target: {fileID: 1867928480848209854, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_RotationInput.m_Action.m_Id
value: b140e5fc-1c8b-4c8b-9e8f-6f568a618548
objectReference: {fileID: 0}
- target: {fileID: 1867928480848209854, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_RotationInput.m_UseReference
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1867928480848209854, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_RotationInput.m_Action.m_Name
value: Rotation Input
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalPosition.x
value: 0.09599997
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalPosition.y
value: -0.0046999454
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalPosition.z
value: -0.0026999563
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalRotation.w
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalRotation.x
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalRotation.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalRotation.z
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 90
objectReference: {fileID: 0}
- target: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -90
objectReference: {fileID: 0}
- target: {fileID: 6394480088774307413, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_Name
value: watchModelPrefab
objectReference: {fileID: 0}
- target: {fileID: 8245527472787612090, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_text
value: 12:55
objectReference: {fileID: 0}
- target: {fileID: 8245527472787612090, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_fontSize
value: 24
objectReference: {fileID: 0}
- target: {fileID: 8245527472787612090, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_fontSizeBase
value: 24
objectReference: {fileID: 0}
- target: {fileID: 8245527472787612090, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_enableWordWrapping
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8838704344492911818, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
propertyPath: m_AnchoredPosition.x
value: -0.03103
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
--- !u!4 &2746058932850546719 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 6050042315643499759, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
m_PrefabInstance: {fileID: 8497702482776648944}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &8925288233854202111
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -0,0 +1,394 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1039681141881038918
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8091033647312613806}
- component: {fileID: 1063019054088158324}
- component: {fileID: 3248465576926956150}
- component: {fileID: 2212112955166449481}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8091033647312613806
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1039681141881038918}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8838704344492911818}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1063019054088158324
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1039681141881038918}
m_CullTransparentMesh: 1
--- !u!114 &3248465576926956150
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1039681141881038918}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text:
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190080
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 0.01
m_fontSizeBase: 0.01
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &2212112955166449481
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1039681141881038918}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 79eae8a751667d949a0def914bb9a392, type: 3}
m_Name:
m_EditorClassIdentifier:
textMeshPro: {fileID: 3248465576926956150}
--- !u!1 &4804006341861142761
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8838704344492911818}
- component: {fileID: 5282459375902861}
- component: {fileID: 6569300871937161733}
- component: {fileID: 5250200597863826558}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8838704344492911818
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4804006341861142761}
m_LocalRotation: {x: 0.5, y: 0.5, z: 0.5, w: 0.5}
m_LocalPosition: {x: 0, y: 0, z: -0.0037}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 8091033647312613806}
m_Father: {fileID: 6050042315643499759}
m_LocalEulerAnglesHint: {x: 180, y: -90, z: -90}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: -0.0302, y: 0.0019}
m_SizeDelta: {x: 0.03, y: 0.03}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!223 &5282459375902861
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4804006341861142761}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 2
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_VertexColorAlwaysGammaSpace: 0
m_AdditionalShaderChannelsFlag: 25
m_UpdateRectTransformForStandalone: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!114 &6569300871937161733
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4804006341861142761}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 1
--- !u!114 &5250200597863826558
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4804006341861142761}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4026531895
--- !u!1001 &6087925595901940484
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalRotation.w
value: 0.70710677
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalRotation.x
value: -0.70710677
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 90
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -90
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
propertyPath: m_Name
value: watchModelPrefab
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
insertIndex: -1
addedObject: {fileID: 8838704344492911818}
m_AddedComponents:
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
insertIndex: -1
addedObject: {fileID: 1867928480848209854}
m_SourcePrefab: {fileID: 100100000, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
--- !u!4 &6050042315643499759 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
m_PrefabInstance: {fileID: 6087925595901940484}
m_PrefabAsset: {fileID: 0}
--- !u!1 &6394480088774307413 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
m_PrefabInstance: {fileID: 6087925595901940484}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1867928480848209854
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6394480088774307413}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c2fadf230d1919748a9aa21d40f74619, type: 3}
m_Name:
m_EditorClassIdentifier:
m_TrackingType: 0
m_UpdateType: 0
m_IgnoreTrackingState: 1
m_PositionInput:
m_UseReference: 1
m_Action:
m_Name:
m_Type: 0
m_ExpectedControlType:
m_Id:
m_Processors:
m_Interactions:
m_SingletonActionBindings: []
m_Flags: 0
m_Reference: {fileID: -3326005586356538449, guid: c348712bda248c246b8c49b3db54643f, type: 3}
m_RotationInput:
m_UseReference: 1
m_Action:
m_Name: Rotation Input
m_Type: 0
m_ExpectedControlType:
m_Id: cc719d00-37f2-4502-8b14-3bc924398cf9
m_Processors:
m_Interactions:
m_SingletonActionBindings: []
m_Flags: 0
m_Reference: {fileID: 5101698808175986029, guid: c348712bda248c246b8c49b3db54643f, type: 3}
m_TrackingStateInput:
m_UseReference: 1
m_Action:
m_Name: Tracking State Input
m_Type: 0
m_ExpectedControlType: Integer
m_Id: eb83a511-0462-46f9-a3f2-f261e83bab2d
m_Processors:
m_Interactions:
m_SingletonActionBindings: []
m_Flags: 0
m_Reference: {fileID: -1277054153949319361, guid: c348712bda248c246b8c49b3db54643f, type: 3}
m_PositionAction:
m_Name:
m_Type: 0
m_ExpectedControlType:
m_Id:
m_Processors:
m_Interactions:
m_SingletonActionBindings: []
m_Flags: 0
m_RotationAction:
m_Name:
m_Type: 0
m_ExpectedControlType:
m_Id:
m_Processors:
m_Interactions:
m_SingletonActionBindings: []
m_Flags: 0

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: abae28f4089698c40915fbe1c5be4e35
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Prefabs/watch_3.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,109 @@
fileFormatVersion: 2
guid: ac7e3d71ea4cab04d949cad4bf445c4a
ModelImporter:
serializedVersion: 22200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -727,6 +727,14 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 540459367475023178, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_text
value:
objectReference: {fileID: 0}
- target: {fileID: 1100151162313162810, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_AnchoredPosition.x
value: -0.0321
objectReference: {fileID: 0}
- target: {fileID: 2232222763306151469, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_LocalPosition.x
value: -1.015
@ -767,12 +775,33 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2746058932850546719, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_LocalPosition.x
value: 0.101
objectReference: {fileID: 0}
- target: {fileID: 3171061758723398214, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: textMeshPro
value:
objectReference: {fileID: 0}
- target: {fileID: 5536342803307029701, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_Name
value: MAVRIC XR Hands Origin v2
objectReference: {fileID: 0}
- target: {fileID: 6411218601319835270, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_text
value:
objectReference: {fileID: 0}
- target: {fileID: 7782730797006555982, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_Enabled
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8936318752350673198, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
propertyPath: m_CullTransparentMesh
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_RemovedGameObjects:
- {fileID: 8400596498565408627, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 264e5f04d776bce4fba764d0f71070e6, type: 3}

View File

@ -0,0 +1,39 @@
using UnityEngine;
using TMPro;
public class DigitalWatch : MonoBehaviour
{
public TextMeshProUGUI textMeshPro;
void Start()
{
// Ensure the TextMeshPro component is assigned
if (textMeshPro == null)
{
textMeshPro = GetComponent<TextMeshProUGUI>();
if (textMeshPro == null)
{
Debug.LogError("TextMeshPro component not found!");
return;
}
}
// Start the update loop for the digital watch
InvokeRepeating("UpdateTime", 0f, 1f); // Update every second
}
void UpdateTime()
{
// Get the current system time
int hour = System.DateTime.Now.Hour;
int minute = System.DateTime.Now.Minute;
int second = System.DateTime.Now.Second;
// Format the time to display without leading zero for single-digit hours
string formattedHour = (hour % 12).ToString(); // Assuming a 12-hour format
string formattedMinute = minute.ToString("00");
// Update the TextMeshPro text to display the time
textMeshPro.text = $"{formattedHour}:{formattedMinute}";
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 79eae8a751667d949a0def914bb9a392
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -90,6 +90,8 @@ MonoBehaviour:
instantiationMode: 0
- dependency: {fileID: 2100000, guid: 9e6e653a67fed1747ad0c09c08920260, type: 2}
instantiationMode: 0
- dependency: {fileID: 919132149155446097, guid: ac7e3d71ea4cab04d949cad4bf445c4a, type: 3}
instantiationMode: 0
- dependency: {fileID: 11400000, guid: 84b7b1c8e966b28489c54ff68685888f, type: 2}
instantiationMode: 1
- dependency: {fileID: 2119128821997336139, guid: ffd656bf2a3ba3d41b1e4a94b81b7c85, type: 3}
@ -180,6 +182,8 @@ MonoBehaviour:
instantiationMode: 0
- dependency: {fileID: 7400000, guid: fff6f79a8d55a4783a07ce08e2c48a03, type: 2}
instantiationMode: 0
- dependency: {fileID: 6394480088774307413, guid: abae28f4089698c40915fbe1c5be4e35, type: 3}
instantiationMode: 0
- dependency: {fileID: 2301448951803949693, guid: 0127c4742e006344e81bbc27a7223f62, type: 3}
instantiationMode: 0
- dependency: {fileID: 2800000, guid: 203e1dbd0b73af145b21f5768e352289, type: 3}
@ -344,6 +348,8 @@ MonoBehaviour:
instantiationMode: 1
- dependency: {fileID: 32900000, guid: 99d0a31576a4cac47b98a6df862547a0, type: 3}
instantiationMode: 1
- dependency: {fileID: 919132149155446097, guid: be2911572dc3afa448d24b4e97edc5f1, type: 3}
instantiationMode: 0
- dependency: {fileID: 2100000, guid: 37fc276bc83874d068a059fbcfbe6517, type: 2}
instantiationMode: 0
- dependency: {fileID: 11400000, guid: 50e742244dbb51d4f9d211cab09e16b3, type: 2}
@ -354,10 +360,6 @@ MonoBehaviour:
instantiationMode: 0
- dependency: {fileID: 2100000, guid: 281de00e90291429b8066bef757f4457, type: 2}
instantiationMode: 0
- dependency: {fileID: 919132149155446097, guid: be2911572dc3afa448d24b4e97edc5f1, type: 3}
instantiationMode: 0
- dependency: {fileID: 11400000, guid: 591edbd6be1a73b4fab57bd230c3efbf, type: 2}
instantiationMode: 1
- dependency: {fileID: 816057727172110303, guid: b83677d186e49a64cadef8d7a5a9d3c6, type: 3}
instantiationMode: 0
- dependency: {fileID: 7543937357359055838, guid: d03480b8d3433d948a8e350d83196a9c, type: 3}
@ -508,12 +510,12 @@ MonoBehaviour:
instantiationMode: 0
- dependency: {fileID: 2800000, guid: 8d19b3f6a715cfa40bc862139074a365, type: 3}
instantiationMode: 0
- dependency: {fileID: 919132149155446097, guid: 153511fbcba98f74d9ff5c476b31ed9e, type: 3}
instantiationMode: 0
- dependency: {fileID: 2800000, guid: 18e31141222989147bd5ede84ace0496, type: 3}
instantiationMode: 0
- dependency: {fileID: 919132149155446097, guid: 6d6afc9c23eb00846a1a78c667f92f80, type: 3}
instantiationMode: 0
- dependency: {fileID: 919132149155446097, guid: 153511fbcba98f74d9ff5c476b31ed9e, type: 3}
instantiationMode: 0
- dependency: {fileID: 11400000, guid: 6c553b2061cda804f9e834c322d027ce, type: 2}
instantiationMode: 1
- dependency: {fileID: 6507399986997092475, guid: 254b742d65a15d14b9df756ae77de868, type: 3}