From 49f208e80ec80c020d0c794656f37b9129eeaa03 Mon Sep 17 00:00:00 2001 From: teach310 Date: Wed, 18 Oct 2023 21:48:22 +0900 Subject: [PATCH 1/8] merge sample central and peripheral to debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit コールバックがどのように、どのタイミングで呼ばれるのか ちゃんと動くのかを確かめるためのSample。 当初は消す予定だったが使えるためdebugとして残すことにした。 --- Assets/CoreBluetooth/Samples/02_Peripheral.meta | 8 -------- .../Samples/{01_Central.meta => 12_Debug.meta} | 2 +- .../Samples/{01_Central => 12_Debug}/Sample_Central.cs | 0 .../{01_Central => 12_Debug}/Sample_Central.cs.meta | 0 .../{01_Central => 12_Debug}/Sample_CentralScene.unity | 0 .../Sample_CentralScene.unity.meta | 0 .../{02_Peripheral => 12_Debug}/Sample_Peripheral.cs | 0 .../{02_Peripheral => 12_Debug}/Sample_Peripheral.cs.meta | 0 .../Sample_PeripheralScene.unity | 0 .../Sample_PeripheralScene.unity.meta | 0 10 files changed, 1 insertion(+), 9 deletions(-) delete mode 100644 Assets/CoreBluetooth/Samples/02_Peripheral.meta rename Assets/CoreBluetooth/Samples/{01_Central.meta => 12_Debug.meta} (77%) rename Assets/CoreBluetooth/Samples/{01_Central => 12_Debug}/Sample_Central.cs (100%) rename Assets/CoreBluetooth/Samples/{01_Central => 12_Debug}/Sample_Central.cs.meta (100%) rename Assets/CoreBluetooth/Samples/{01_Central => 12_Debug}/Sample_CentralScene.unity (100%) rename Assets/CoreBluetooth/Samples/{01_Central => 12_Debug}/Sample_CentralScene.unity.meta (100%) rename Assets/CoreBluetooth/Samples/{02_Peripheral => 12_Debug}/Sample_Peripheral.cs (100%) rename Assets/CoreBluetooth/Samples/{02_Peripheral => 12_Debug}/Sample_Peripheral.cs.meta (100%) rename Assets/CoreBluetooth/Samples/{02_Peripheral => 12_Debug}/Sample_PeripheralScene.unity (100%) rename Assets/CoreBluetooth/Samples/{02_Peripheral => 12_Debug}/Sample_PeripheralScene.unity.meta (100%) diff --git a/Assets/CoreBluetooth/Samples/02_Peripheral.meta b/Assets/CoreBluetooth/Samples/02_Peripheral.meta deleted file mode 100644 index bb7c911..0000000 --- a/Assets/CoreBluetooth/Samples/02_Peripheral.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e3105ef4e2b23453e885d45a8a359ee9 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/CoreBluetooth/Samples/01_Central.meta b/Assets/CoreBluetooth/Samples/12_Debug.meta similarity index 77% rename from Assets/CoreBluetooth/Samples/01_Central.meta rename to Assets/CoreBluetooth/Samples/12_Debug.meta index 0fba9cc..05be919 100644 --- a/Assets/CoreBluetooth/Samples/01_Central.meta +++ b/Assets/CoreBluetooth/Samples/12_Debug.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 78a2960ce60d346348209aee682b027d +guid: 67443606063ff4896b78de5c03d64550 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/CoreBluetooth/Samples/01_Central/Sample_Central.cs b/Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs similarity index 100% rename from Assets/CoreBluetooth/Samples/01_Central/Sample_Central.cs rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs diff --git a/Assets/CoreBluetooth/Samples/01_Central/Sample_Central.cs.meta b/Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/01_Central/Sample_Central.cs.meta rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs.meta diff --git a/Assets/CoreBluetooth/Samples/01_Central/Sample_CentralScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity similarity index 100% rename from Assets/CoreBluetooth/Samples/01_Central/Sample_CentralScene.unity rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity diff --git a/Assets/CoreBluetooth/Samples/01_Central/Sample_CentralScene.unity.meta b/Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/01_Central/Sample_CentralScene.unity.meta rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity.meta diff --git a/Assets/CoreBluetooth/Samples/02_Peripheral/Sample_Peripheral.cs b/Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs similarity index 100% rename from Assets/CoreBluetooth/Samples/02_Peripheral/Sample_Peripheral.cs rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs diff --git a/Assets/CoreBluetooth/Samples/02_Peripheral/Sample_Peripheral.cs.meta b/Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/02_Peripheral/Sample_Peripheral.cs.meta rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs.meta diff --git a/Assets/CoreBluetooth/Samples/02_Peripheral/Sample_PeripheralScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity similarity index 100% rename from Assets/CoreBluetooth/Samples/02_Peripheral/Sample_PeripheralScene.unity rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity diff --git a/Assets/CoreBluetooth/Samples/02_Peripheral/Sample_PeripheralScene.unity.meta b/Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/02_Peripheral/Sample_PeripheralScene.unity.meta rename to Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity.meta From bdf7959f1c444fb03dae75f65d6b518ff3c26f93 Mon Sep 17 00:00:00 2001 From: teach310 Date: Wed, 18 Oct 2023 22:53:06 +0900 Subject: [PATCH 2/8] add device simulator --- Packages/manifest.json | 1 + Packages/packages-lock.json | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Packages/manifest.json b/Packages/manifest.json index 540a92b..d7959c3 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,6 +1,7 @@ { "dependencies": { "com.unity.collab-proxy": "2.1.0", + "com.unity.device-simulator.devices": "1.0.0", "com.unity.feature.development": "1.0.1", "com.unity.textmeshpro": "3.0.6", "com.unity.timeline": "1.7.5", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 2927cb3..f9bbabc 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -13,6 +13,13 @@ "dependencies": {}, "url": "https://packages.unity.com" }, + "com.unity.device-simulator.devices": { + "version": "1.0.0", + "depth": 0, + "source": "registry", + "dependencies": {}, + "url": "https://packages.unity.com" + }, "com.unity.editorcoroutines": { "version": "1.0.0", "depth": 1, From ec01460657cbe5438aac5121526206e7031aa4e0 Mon Sep 17 00:00:00 2001 From: teach310 Date: Wed, 18 Oct 2023 22:54:25 +0900 Subject: [PATCH 3/8] rename Sample Central and Peripheral --- .../12_Debug/{Sample_Central.cs => SampleDebug_Central.cs} | 2 +- .../{Sample_Central.cs.meta => SampleDebug_Central.cs.meta} | 0 ...Sample_CentralScene.unity => SampleDebug_CentralScene.unity} | 0 ...tralScene.unity.meta => SampleDebug_CentralScene.unity.meta} | 0 .../{Sample_Peripheral.cs => SampleDebug_Peripheral.cs} | 2 +- ...Sample_Peripheral.cs.meta => SampleDebug_Peripheral.cs.meta} | 0 ..._PeripheralScene.unity => SampleDebug_PeripheralScene.unity} | 0 ...lScene.unity.meta => SampleDebug_PeripheralScene.unity.meta} | 0 8 files changed, 2 insertions(+), 2 deletions(-) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_Central.cs => SampleDebug_Central.cs} (98%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_Central.cs.meta => SampleDebug_Central.cs.meta} (100%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_CentralScene.unity => SampleDebug_CentralScene.unity} (100%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_CentralScene.unity.meta => SampleDebug_CentralScene.unity.meta} (100%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_Peripheral.cs => SampleDebug_Peripheral.cs} (98%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_Peripheral.cs.meta => SampleDebug_Peripheral.cs.meta} (100%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_PeripheralScene.unity => SampleDebug_PeripheralScene.unity} (100%) rename Assets/CoreBluetooth/Samples/12_Debug/{Sample_PeripheralScene.unity.meta => SampleDebug_PeripheralScene.unity.meta} (100%) diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs similarity index 98% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs index 04d32ff..75884de 100644 --- a/Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs @@ -4,7 +4,7 @@ namespace CoreBluetoothSample { - public class Sample_Central : MonoBehaviour, ICBCentralManagerDelegate, ICBPeripheralDelegate + public class SampleDebug_Central : MonoBehaviour, ICBCentralManagerDelegate, ICBPeripheralDelegate { CBCentralManager centralManager; diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_Central.cs.meta rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs.meta diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity similarity index 100% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_CentralScene.unity.meta rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity.meta diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs similarity index 98% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs index d1af74e..975bd4c 100644 --- a/Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs @@ -6,7 +6,7 @@ namespace CoreBluetoothSample { - public class Sample_Peripheral : MonoBehaviour, ICBPeripheralManagerDelegate + public class SampleDebug_Peripheral : MonoBehaviour, ICBPeripheralManagerDelegate { CBPeripheralManager peripheralManager; diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_Peripheral.cs.meta rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs.meta diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity similarity index 100% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity diff --git a/Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity.meta similarity index 100% rename from Assets/CoreBluetooth/Samples/12_Debug/Sample_PeripheralScene.unity.meta rename to Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity.meta From ce351dc7fe3db4e32e98657dc2fa33f834bc8c74 Mon Sep 17 00:00:00 2001 From: teach310 Date: Wed, 18 Oct 2023 22:54:43 +0900 Subject: [PATCH 4/8] add SampleDebug_Home --- .../Samples/12_Debug/SampleDebug_Home.cs | 21 + .../Samples/12_Debug/SampleDebug_Home.cs.meta | 11 + .../12_Debug/SampleDebug_HomeScene.unity | 864 ++++++++++++++++++ .../12_Debug/SampleDebug_HomeScene.unity.meta | 7 + ProjectSettings/EditorBuildSettings.asset | 9 +- 5 files changed, 909 insertions(+), 3 deletions(-) create mode 100644 Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs create mode 100644 Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs.meta create mode 100644 Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity create mode 100644 Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity.meta diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs new file mode 100644 index 0000000..35fec24 --- /dev/null +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.SceneManagement; + +namespace CoreBluetoothSample +{ + public class SampleDebug_Home : MonoBehaviour + { + public void OnClickCentral() + { + SceneManager.LoadScene("SampleDebug_CentralScene"); + } + + public void OnClickPeripheral() + { + SceneManager.LoadScene("SampleDebug_PeripheralScene"); + } + } +} + diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs.meta new file mode 100644 index 0000000..897388e --- /dev/null +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Home.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b1b82ba34ede43aa8ac17bbae0634b0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity new file mode 100644 index 0000000..a97a6a5 --- /dev/null +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity @@ -0,0 +1,864 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.3708708, g: 0.37838137, b: 0.35725543, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 3 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &150342750 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 150342751} + - component: {fileID: 150342754} + - component: {fileID: 150342753} + - component: {fileID: 150342752} + m_Layer: 5 + m_Name: CentralButton + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &150342751 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 150342750} + 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: + - {fileID: 234847548} + m_Father: {fileID: 821998761} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: -240, y: 0} + m_SizeDelta: {x: 360, y: 240} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &150342752 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 150342750} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 150342753} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1494016627} + m_TargetAssemblyTypeName: CoreBluetoothSample.SampleDebug_Home, Assembly-CSharp + m_MethodName: OnClickCentral + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &150342753 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 150342750} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.3137255, b: 0.31372547, 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_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &150342754 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 150342750} + m_CullTransparentMesh: 1 +--- !u!1 &182709495 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 182709498} + - component: {fileID: 182709497} + - component: {fileID: 182709496} + m_Layer: 0 + m_Name: EventSystem + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &182709496 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 182709495} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3} + m_Name: + m_EditorClassIdentifier: + m_SendPointerHoverToParent: 1 + m_HorizontalAxis: Horizontal + m_VerticalAxis: Vertical + m_SubmitButton: Submit + m_CancelButton: Cancel + m_InputActionsPerSecond: 10 + m_RepeatDelay: 0.5 + m_ForceModuleActive: 0 +--- !u!114 &182709497 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 182709495} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_FirstSelected: {fileID: 0} + m_sendNavigationEvents: 1 + m_DragThreshold: 10 +--- !u!4 &182709498 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 182709495} + serializedVersion: 2 + 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: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &234847547 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 234847548} + - component: {fileID: 234847550} + - component: {fileID: 234847549} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &234847548 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 234847547} + 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: 150342751} + 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!114 &234847549 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 234847547} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.88235295, g: 0.88235295, b: 0.88235295, 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_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 48 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 197 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Central +--- !u!222 &234847550 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 234847547} + m_CullTransparentMesh: 1 +--- !u!1 &687532184 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 687532185} + - component: {fileID: 687532188} + - component: {fileID: 687532187} + - component: {fileID: 687532186} + m_Layer: 5 + m_Name: PeripheralButton + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &687532185 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 687532184} + 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: + - {fileID: 1414118226} + m_Father: {fileID: 821998761} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 240, y: 0} + m_SizeDelta: {x: 360, y: 240} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &687532186 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 687532184} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 687532187} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1494016627} + m_TargetAssemblyTypeName: CoreBluetoothSample.SampleDebug_Home, Assembly-CSharp + m_MethodName: OnClickPeripheral + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &687532187 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 687532184} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.31372547, g: 0.3137255, 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_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &687532188 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 687532184} + m_CullTransparentMesh: 1 +--- !u!1 &821998757 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 821998761} + - component: {fileID: 821998760} + - component: {fileID: 821998759} + - component: {fileID: 821998758} + m_Layer: 5 + m_Name: Canvas + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &821998758 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 821998757} + 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: 4294967295 +--- !u!114 &821998759 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 821998757} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 1 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 4 + m_ReferenceResolution: {x: 1280, y: 720} + m_ScreenMatchMode: 1 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 + m_PresetInfoIsWorld: 0 +--- !u!223 &821998760 +Canvas: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 821998757} + m_Enabled: 1 + serializedVersion: 3 + m_RenderMode: 0 + 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: 0 + m_UpdateRectTransformForStandalone: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &821998761 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 821998757} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 150342751} + - {fileID: 687532185} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!1 &1414118225 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1414118226} + - component: {fileID: 1414118228} + - component: {fileID: 1414118227} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1414118226 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1414118225} + 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: 687532185} + 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!114 &1414118227 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1414118225} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.88235295, g: 0.88235295, b: 0.88235295, 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_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 48 + m_FontStyle: 1 + m_BestFit: 0 + m_MinSize: 0 + m_MaxSize: 197 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: Peripheral +--- !u!222 &1414118228 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1414118225} + m_CullTransparentMesh: 1 +--- !u!1 &1494016626 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1494016628} + - component: {fileID: 1494016627} + m_Layer: 0 + m_Name: Scene + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1494016627 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1494016626} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6b1b82ba34ede43aa8ac17bbae0634b0, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &1494016628 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1494016626} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 667, y: 375, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1848129372 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1848129375} + - component: {fileID: 1848129374} + - component: {fileID: 1848129373} + m_Layer: 0 + m_Name: Camera + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1848129373 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1848129372} + m_Enabled: 1 +--- !u!20 &1848129374 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1848129372} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0.11764706, g: 0.11764706, b: 0.11764706, a: 1} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1848129375 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1848129372} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 667, y: 375, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 821998761} + - {fileID: 182709498} + - {fileID: 1848129375} + - {fileID: 1494016628} diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity.meta new file mode 100644 index 0000000..46bdd1a --- /dev/null +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 23e434e4762674c2992cc53e7057e164 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset index 096badd..5387ede 100644 --- a/ProjectSettings/EditorBuildSettings.asset +++ b/ProjectSettings/EditorBuildSettings.asset @@ -5,10 +5,13 @@ EditorBuildSettings: m_ObjectHideFlags: 0 serializedVersion: 2 m_Scenes: - - enabled: 0 - path: Assets/CoreBluetooth/Samples/01_Central/Sample_CentralScene.unity + - enabled: 1 + path: Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_HomeScene.unity + guid: 23e434e4762674c2992cc53e7057e164 + - enabled: 1 + path: Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity guid: 9fc0d4010bbf28b4594072e72b8655ab - enabled: 1 - path: Assets/CoreBluetooth/Samples/02_Peripheral/Sample_PeripheralScene.unity + path: Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity guid: 2b27971a874f5470fb58333560169398 m_configObjects: {} From aec2c0690d4dc1dc11449b42f09f48737ef155ad Mon Sep 17 00:00:00 2001 From: teach310 Date: Thu, 19 Oct 2023 00:14:07 +0900 Subject: [PATCH 5/8] SampleDebug add Header change Design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ホームから遷移できるようにする --- .../12_Debug/SampleDebug_CentralScene.unity | 342 +++++++++++++++++- .../Samples/12_Debug/SampleDebug_Header.cs | 10 + .../12_Debug/SampleDebug_Header.cs.meta | 11 + .../SampleDebug_PeripheralScene.unity | 340 ++++++++++++++++- 4 files changed, 700 insertions(+), 3 deletions(-) create mode 100644 Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs create mode 100644 Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs.meta diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity index fc87053..3158e06 100644 --- a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_CentralScene.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 705507994} - m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481676, a: 1} + m_IndirectSpecularColor: {r: 0.4439372, g: 0.49315345, b: 0.5721989, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -191,6 +191,139 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &167323285 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 167323286} + - component: {fileID: 167323289} + - component: {fileID: 167323288} + - component: {fileID: 167323287} + m_Layer: 5 + m_Name: Home + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &167323286 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 167323285} + 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: + - {fileID: 502873445} + m_Father: {fileID: 1878487716} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 80, y: 0} + m_SizeDelta: {x: 160, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &167323287 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 167323285} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 167323288} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1878487717} + m_TargetAssemblyTypeName: SampleDebug_Header, Assembly-CSharp + m_MethodName: OnClickHome + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &167323288 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 167323285} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &167323289 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 167323285} + m_CullTransparentMesh: 1 --- !u!1 &268526162 GameObject: m_ObjectHideFlags: 0 @@ -270,6 +403,85 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 268526162} m_CullTransparentMesh: 1 +--- !u!1 &502873444 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 502873445} + - component: {fileID: 502873447} + - component: {fileID: 502873446} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &502873445 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 502873444} + 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: 167323286} + 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!114 &502873446 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 502873444} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.88235295, g: 0.88235295, b: 0.88235295, 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_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 30 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 3 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: HOME +--- !u!222 &502873447 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 502873444} + m_CullTransparentMesh: 1 --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 @@ -400,7 +612,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 2 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_BackGroundColor: {r: 0.11764706, g: 0.11764706, b: 0.11764706, a: 0} m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 @@ -631,6 +843,7 @@ RectTransform: m_Children: - {fileID: 1464279507} - {fileID: 2085064255} + - {fileID: 1878487716} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -815,6 +1028,131 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1464279506} m_CullTransparentMesh: 1 +--- !u!1 &1878487715 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1878487716} + - component: {fileID: 1878487717} + m_Layer: 5 + m_Name: Header + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1878487716 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1878487715} + 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: + - {fileID: 1912619474} + - {fileID: 167323286} + m_Father: {fileID: 994619686} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 100} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1878487717 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1878487715} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0b2fe08bc31c347a2a3c989871aa4ba4, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &1912619473 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1912619474} + - component: {fileID: 1912619476} + - component: {fileID: 1912619475} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1912619474 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1912619473} + 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: 1878487716} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 100} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1912619475 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1912619473} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 0.3137255, b: 0.3137255, 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_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1912619476 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1912619473} + m_CullTransparentMesh: 1 --- !u!1 &2085064254 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs new file mode 100644 index 0000000..798bd80 --- /dev/null +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs @@ -0,0 +1,10 @@ +using UnityEngine; +using UnityEngine.SceneManagement; + +public class SampleDebug_Header : MonoBehaviour +{ + public void OnClickHome() + { + SceneManager.LoadScene("SampleDebug_HomeScene"); + } +} diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs.meta b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs.meta new file mode 100644 index 0000000..943d860 --- /dev/null +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Header.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0b2fe08bc31c347a2a3c989871aa4ba4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity index d4bf927..e005674 100644 --- a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_PeripheralScene.unity @@ -191,6 +191,218 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &351522879 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 351522880} + - component: {fileID: 351522883} + - component: {fileID: 351522882} + - component: {fileID: 351522881} + m_Layer: 5 + m_Name: Home + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &351522880 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 351522879} + 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: + - {fileID: 662800340} + m_Father: {fileID: 1870699850} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 80, y: 0} + m_SizeDelta: {x: 160, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &351522881 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 351522879} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 351522882} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1870699851} + m_TargetAssemblyTypeName: SampleDebug_Header, Assembly-CSharp + m_MethodName: OnClickHome + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &351522882 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 351522879} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &351522883 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 351522879} + m_CullTransparentMesh: 1 +--- !u!1 &662800339 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 662800340} + - component: {fileID: 662800342} + - component: {fileID: 662800341} + m_Layer: 5 + m_Name: Text (Legacy) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &662800340 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 662800339} + 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: 351522880} + 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!114 &662800341 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 662800339} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.88235295, g: 0.88235295, b: 0.88235295, 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_FontData: + m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0} + m_FontSize: 30 + m_FontStyle: 0 + m_BestFit: 0 + m_MinSize: 3 + m_MaxSize: 40 + m_Alignment: 4 + m_AlignByGeometry: 0 + m_RichText: 1 + m_HorizontalOverflow: 0 + m_VerticalOverflow: 0 + m_LineSpacing: 1 + m_Text: HOME +--- !u!222 &662800342 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 662800339} + m_CullTransparentMesh: 1 --- !u!1 &705507993 GameObject: m_ObjectHideFlags: 0 @@ -321,7 +533,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 2 - m_BackGroundColor: {r: 0.26298642, g: 0.4745098, b: 0.19215688, a: 0} + m_BackGroundColor: {r: 0.11764706, g: 0.11764706, b: 0.11764706, a: 0} m_projectionMatrixMode: 1 m_GateFitMode: 2 m_FOVAxisMode: 0 @@ -551,6 +763,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 1464279507} + - {fileID: 1870699850} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -735,6 +948,131 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1464279506} m_CullTransparentMesh: 1 +--- !u!1 &1870699849 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1870699850} + - component: {fileID: 1870699851} + m_Layer: 5 + m_Name: Header + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1870699850 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1870699849} + 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: + - {fileID: 2006063359} + - {fileID: 351522880} + m_Father: {fileID: 994619686} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0.00012207031, y: 0.00012207031} + m_SizeDelta: {x: 0, y: 100} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &1870699851 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1870699849} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0b2fe08bc31c347a2a3c989871aa4ba4, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!1 &2006063358 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2006063359} + - component: {fileID: 2006063361} + - component: {fileID: 2006063360} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2006063359 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2006063358} + 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: 1870699850} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 100} + m_Pivot: {x: 0.5, y: 1} +--- !u!114 &2006063360 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2006063358} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.3137255, g: 0.3137255, 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_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &2006063361 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2006063358} + m_CullTransparentMesh: 1 --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 From a47fb8eea4262ab43b765a027bf751d33d78f649 Mon Sep 17 00:00:00 2001 From: teach310 Date: Thu, 19 Oct 2023 21:47:25 +0900 Subject: [PATCH 6/8] rename fields --- .../Samples/12_Debug/SampleDebug_Central.cs | 44 +++++++++---------- .../12_Debug/SampleDebug_Peripheral.cs | 44 +++++++++---------- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs index 75884de..b647bc1 100644 --- a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Central.cs @@ -6,24 +6,24 @@ namespace CoreBluetoothSample { public class SampleDebug_Central : MonoBehaviour, ICBCentralManagerDelegate, ICBPeripheralDelegate { - CBCentralManager centralManager; - // See the following for generating UUIDs: // https://www.uuidgenerator.net/ - string serviceUUID = "068C47B7-FC04-4D47-975A-7952BE1A576F"; - string characteristicUUID = "E3737B3F-A08D-405B-B32D-35A8F6C64C5D"; - CBPeripheral peripheral; - CBCharacteristic remoteCharacteristic; + string _serviceUUID = "068C47B7-FC04-4D47-975A-7952BE1A576F"; + string _characteristicUUID = "E3737B3F-A08D-405B-B32D-35A8F6C64C5D"; + + CBCentralManager _centralManager; + CBPeripheral _peripheral; + CBCharacteristic _remoteCharacteristic; void Start() { - centralManager = new CBCentralManager(this); + _centralManager = new CBCentralManager(this); } public void DidDiscoverPeripheral(CBCentralManager central, CBPeripheral peripheral, int rssi) { Debug.Log($"[DidDiscoverPeripheral] peripheral: {peripheral} rssi: {rssi}"); - this.peripheral = peripheral; + _peripheral = peripheral; peripheral.Delegate = this; central.StopScan(); central.Connect(peripheral); @@ -35,14 +35,14 @@ public void DidUpdateState(CBCentralManager central) if (central.State == CBManagerState.PoweredOn) { Debug.Log($"[DidUpdateState] Start scanning for peripherals..."); - central.ScanForPeripherals(new string[] { serviceUUID }); + central.ScanForPeripherals(new string[] { _serviceUUID }); } } public void DidConnectPeripheral(CBCentralManager central, CBPeripheral peripheral) { Debug.Log($"[DidConnectPeripheral] peripheral: {peripheral}"); - peripheral.DiscoverServices(new string[] { serviceUUID }); + peripheral.DiscoverServices(new string[] { _serviceUUID }); } public void DidDisconnectPeripheral(CBCentralManager central, CBPeripheral peripheral, CBError error) @@ -67,7 +67,7 @@ public void DidDiscoverServices(CBPeripheral peripheral, CBError error) foreach (var service in peripheral.Services) { Debug.Log($"[DidDiscoverServices] service: {service}, start discovering characteristics..."); - peripheral.DiscoverCharacteristics(new string[] { characteristicUUID }, service); + peripheral.DiscoverCharacteristics(new string[] { _characteristicUUID }, service); } } @@ -84,9 +84,9 @@ public void DidDiscoverCharacteristics(CBPeripheral peripheral, CBService servic { Debug.Log($"[DidDiscoverCharacteristics] characteristic: {characteristic}"); - if (characteristic.UUID == characteristicUUID) + if (characteristic.UUID == _characteristicUUID) { - remoteCharacteristic = characteristic; + _remoteCharacteristic = characteristic; } if (characteristic.Properties.HasFlag(CBCharacteristicProperties.Notify)) @@ -136,13 +136,13 @@ public void DidUpdateNotificationStateForCharacteristic(CBPeripheral peripheral, public void OnClickWrite() { - if (peripheral == null) + if (_peripheral == null) { Debug.Log("peripheral is null."); return; } - if (remoteCharacteristic == null) + if (_remoteCharacteristic == null) { Debug.Log("remoteCharacteristic is null."); return; @@ -150,32 +150,32 @@ public void OnClickWrite() var value = UnityEngine.Random.Range(100, 1000).ToString(); var data = Encoding.UTF8.GetBytes(value); - peripheral.WriteValue(data, remoteCharacteristic, CBCharacteristicWriteType.WithResponse); + _peripheral.WriteValue(data, _remoteCharacteristic, CBCharacteristicWriteType.WithResponse); } public void OnClickRead() { - if (peripheral == null) + if (_peripheral == null) { Debug.Log("peripheral is null."); return; } - if (remoteCharacteristic == null) + if (_remoteCharacteristic == null) { Debug.Log("remoteCharacteristic is null."); return; } - peripheral.ReadValue(remoteCharacteristic); + _peripheral.ReadValue(_remoteCharacteristic); } void OnDestroy() { - if (centralManager != null) + if (_centralManager != null) { - centralManager.Dispose(); - centralManager = null; + _centralManager.Dispose(); + _centralManager = null; } } } diff --git a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs index 975bd4c..6af0ae9 100644 --- a/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs +++ b/Assets/CoreBluetooth/Samples/12_Debug/SampleDebug_Peripheral.cs @@ -8,20 +8,20 @@ namespace CoreBluetoothSample { public class SampleDebug_Peripheral : MonoBehaviour, ICBPeripheralManagerDelegate { - CBPeripheralManager peripheralManager; + string _serviceUUID = "068C47B7-FC04-4D47-975A-7952BE1A576F"; + string _characteristicUUID = "E3737B3F-A08D-405B-B32D-35A8F6C64C5D"; - string serviceUUID = "068C47B7-FC04-4D47-975A-7952BE1A576F"; - string characteristicUUID = "E3737B3F-A08D-405B-B32D-35A8F6C64C5D"; - - List disposables = new List(); + CBPeripheralManager _peripheralManager; CBCentral _central = null; CBMutableCharacteristic _characteristic = null; - byte[] value = null; + + List _disposables = new List(); + byte[] _value = null; void Start() { - peripheralManager = new CBPeripheralManager(this); - disposables.Add(peripheralManager); + _peripheralManager = new CBPeripheralManager(this); + _disposables.Add(_peripheralManager); } public void DidUpdateState(CBPeripheralManager peripheral) @@ -29,17 +29,17 @@ public void DidUpdateState(CBPeripheralManager peripheral) Debug.Log($"[DidUpdateState] {peripheral.State}"); if (peripheral.State == CBManagerState.PoweredOn) { - var service = new CBMutableService(serviceUUID, true); + var service = new CBMutableService(_serviceUUID, true); _characteristic = new CBMutableCharacteristic( - characteristicUUID, + _characteristicUUID, CBCharacteristicProperties.Read | CBCharacteristicProperties.Write | CBCharacteristicProperties.Notify, null, CBAttributePermissions.Readable | CBAttributePermissions.Writeable ); service.Characteristics = new CBCharacteristic[] { _characteristic }; peripheral.AddService(service); - disposables.Add(service); - disposables.Add(_characteristic); + _disposables.Add(service); + _disposables.Add(_characteristic); } } @@ -51,7 +51,7 @@ public void DidAddService(CBPeripheralManager peripheral, CBService service, CBE var options = new StartAdvertisingOptions() { LocalName = "Unity", - ServiceUUIDs = new string[] { serviceUUID } + ServiceUUIDs = new string[] { _serviceUUID } }; peripheral.StartAdvertising(options); } @@ -81,20 +81,20 @@ public void IsReadyToUpdateSubscribers(CBPeripheralManager peripheral) public void DidReceiveReadRequest(CBPeripheralManager peripheral, CBATTRequest request) { - if (request.Characteristic.UUID != characteristicUUID) + if (request.Characteristic.UUID != _characteristicUUID) { peripheral.RespondToRequest(request, CBATTError.AttributeNotFound); return; } - int valueLength = value?.Length ?? 0; + int valueLength = _value?.Length ?? 0; if (request.Offset > valueLength) { peripheral.RespondToRequest(request, CBATTError.InvalidOffset); return; } - request.Value = value ?? new byte[0]; + request.Value = _value ?? new byte[0]; peripheral.RespondToRequest(request, CBATTError.Success); Debug.Log($"[DidReceiveReadRequest] {System.Text.Encoding.UTF8.GetString(request.Value)}"); } @@ -104,12 +104,12 @@ public void DidReceiveWriteRequests(CBPeripheralManager peripheral, CBATTRequest var firstRequest = requests[0]; foreach (var request in requests) { - if (request.Characteristic.UUID != characteristicUUID) + if (request.Characteristic.UUID != _characteristicUUID) { peripheral.RespondToRequest(firstRequest, CBATTError.AttributeNotFound); return; } - int valueLength = value?.Length ?? 0; + int valueLength = _value?.Length ?? 0; if (request.Offset > valueLength) { peripheral.RespondToRequest(firstRequest, CBATTError.InvalidOffset); @@ -117,7 +117,7 @@ public void DidReceiveWriteRequests(CBPeripheralManager peripheral, CBATTRequest } } - value = firstRequest.Value; + _value = firstRequest.Value; peripheral.RespondToRequest(firstRequest, CBATTError.Success); Debug.Log($"[DidReceiveWriteRequests] {System.Text.Encoding.UTF8.GetString(firstRequest.Value)}"); } @@ -131,14 +131,14 @@ public void OnClickNotify() var value = UnityEngine.Random.Range(100, 1000).ToString(); var data = Encoding.UTF8.GetBytes(value); - this.value = data; + _value = data; - peripheralManager.UpdateValue(this.value, _characteristic, new CBCentral[] { _central }); + _peripheralManager.UpdateValue(_value, _characteristic, new CBCentral[] { _central }); } void OnDestroy() { - foreach (var disposable in disposables) + foreach (var disposable in _disposables) { disposable.Dispose(); } From b52a6b7434c221b6df3f62e488e2d72411532873 Mon Sep 17 00:00:00 2001 From: teach310 Date: Thu, 19 Oct 2023 21:54:32 +0900 Subject: [PATCH 7/8] rename classname --- .../Samples/11_BuildPostprocessor/Editor/BuildPostprocessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/CoreBluetooth/Samples/11_BuildPostprocessor/Editor/BuildPostprocessor.cs b/Assets/CoreBluetooth/Samples/11_BuildPostprocessor/Editor/BuildPostprocessor.cs index 669a569..fbec794 100644 --- a/Assets/CoreBluetooth/Samples/11_BuildPostprocessor/Editor/BuildPostprocessor.cs +++ b/Assets/CoreBluetooth/Samples/11_BuildPostprocessor/Editor/BuildPostprocessor.cs @@ -10,7 +10,7 @@ namespace CoreBluetoothEditor { - public class BuildPostProcessor : IPostprocessBuildWithReport + public class BuildPostprocessor : IPostprocessBuildWithReport { public int callbackOrder { get { return 1; } } From e59f7432d7a0898c153530f033adf259e0d31f0a Mon Sep 17 00:00:00 2001 From: teach310 Date: Thu, 19 Oct 2023 21:58:01 +0900 Subject: [PATCH 8/8] update package.json --- .../com.teach310.core-bluetooth-for-unity/package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Packages/com.teach310.core-bluetooth-for-unity/package.json b/Packages/com.teach310.core-bluetooth-for-unity/package.json index e26c8f3..0907fe5 100644 --- a/Packages/com.teach310.core-bluetooth-for-unity/package.json +++ b/Packages/com.teach310.core-bluetooth-for-unity/package.json @@ -22,9 +22,14 @@ }, "samples": [ { - "displayName": "Central", + "displayName": "BuildPostprocessor", + "description": "This is a sample build postprocessor that will automatically update Info.plist", + "path": "Samples~/11_BuildPostprocessor" + }, + { + "displayName": "Debug", "description": "This sample demonstrates how to use CoreBluetooth to scan for and connect to peripherals.", - "path": "Samples~/01_Central" + "path": "Samples~/12_Debug" } ] } \ No newline at end of file