updated
This commit is contained in:
1
Assets/Resources/PerformanceTestRunInfo.json
Normal file
1
Assets/Resources/PerformanceTestRunInfo.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"TestSuite":"","Date":0,"Player":{"Development":false,"ScreenWidth":0,"ScreenHeight":0,"ScreenRefreshRate":0,"Fullscreen":false,"Vsync":0,"AntiAliasing":0,"Batchmode":false,"RenderThreadingMode":"MultiThreaded","GpuSkinning":true,"Platform":"","ColorSpace":"","AnisotropicFiltering":"","BlendWeights":"","GraphicsApi":"","ScriptingBackend":"IL2CPP","AndroidTargetSdkVersion":"AndroidApiLevelAuto","AndroidBuildSystem":"Gradle","BuildTarget":"WebGL","StereoRenderingPath":"MultiPass"},"Hardware":{"OperatingSystem":"","DeviceModel":"","DeviceName":"","ProcessorType":"","ProcessorCount":0,"GraphicsDeviceName":"","SystemMemorySizeMB":0},"Editor":{"Version":"6000.0.34f1","Branch":"6000.0/staging","Changeset":"5ab2d9ed9190","Date":1736176501},"Dependencies":["com.unity.ai.navigation@2.0.5","com.unity.collab-proxy@2.7.1","com.unity.ide.rider@3.0.31","com.unity.ide.visualstudio@2.0.22","com.unity.inputsystem@1.11.2","com.unity.multiplayer.center@1.0.0","com.unity.nuget.newtonsoft-json@3.2.1","com.unity.render-pipelines.universal@17.0.3","com.unity.test-framework@1.4.5","com.unity.timeline@1.8.7","com.unity.ugui@2.0.0","com.unity.visualscripting@1.9.5","com.unity.modules.accessibility@1.0.0","com.unity.modules.ai@1.0.0","com.unity.modules.androidjni@1.0.0","com.unity.modules.animation@1.0.0","com.unity.modules.assetbundle@1.0.0","com.unity.modules.audio@1.0.0","com.unity.modules.cloth@1.0.0","com.unity.modules.director@1.0.0","com.unity.modules.imageconversion@1.0.0","com.unity.modules.imgui@1.0.0","com.unity.modules.jsonserialize@1.0.0","com.unity.modules.particlesystem@1.0.0","com.unity.modules.physics@1.0.0","com.unity.modules.physics2d@1.0.0","com.unity.modules.screencapture@1.0.0","com.unity.modules.terrain@1.0.0","com.unity.modules.terrainphysics@1.0.0","com.unity.modules.tilemap@1.0.0","com.unity.modules.ui@1.0.0","com.unity.modules.uielements@1.0.0","com.unity.modules.umbra@1.0.0","com.unity.modules.unityanalytics@1.0.0","com.unity.modules.unitywebrequest@1.0.0","com.unity.modules.unitywebrequestassetbundle@1.0.0","com.unity.modules.unitywebrequestaudio@1.0.0","com.unity.modules.unitywebrequesttexture@1.0.0","com.unity.modules.unitywebrequestwww@1.0.0","com.unity.modules.vehicles@1.0.0","com.unity.modules.video@1.0.0","com.unity.modules.vr@1.0.0","com.unity.modules.wind@1.0.0","com.unity.modules.xr@1.0.0","com.tivadar.best.http@3.0.15","com.tivadar.best.mqtt@3.0.4","com.tivadar.best.stomp@1.0.2","com.tivadar.best.websockets@3.0.7","com.unity.burst@1.8.19","com.unity.profiling.core@1.0.2","com.unity.modules.subsystems@1.0.0","com.unity.modules.hierarchycore@1.0.0","com.unity.ext.nunit@2.0.5","com.unity.render-pipelines.core@17.0.3","com.unity.shadergraph@17.0.3","com.unity.render-pipelines.universal-config@17.0.3","com.unity.mathematics@1.3.2","com.unity.searcher@4.9.2","com.unity.collections@2.5.1","com.unity.rendering.light-transport@1.0.1","com.unity.nuget.mono-cecil@1.11.4","com.unity.test-framework.performance@3.0.3"],"Results":[]}
|
||||||
7
Assets/Resources/PerformanceTestRunInfo.json.meta
Normal file
7
Assets/Resources/PerformanceTestRunInfo.json.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a555039fe0c54a645a019305ca23da96
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
1
Assets/Resources/PerformanceTestRunSettings.json
Normal file
1
Assets/Resources/PerformanceTestRunSettings.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"MeasurementCount":-1}
|
||||||
7
Assets/Resources/PerformanceTestRunSettings.json.meta
Normal file
7
Assets/Resources/PerformanceTestRunSettings.json.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b3aeb0312a974494bafc58345f18fc2e
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -33,28 +33,28 @@ MonoBehaviour:
|
|||||||
m_Settings:
|
m_Settings:
|
||||||
m_SettingsList:
|
m_SettingsList:
|
||||||
m_List:
|
m_List:
|
||||||
- rid: 1324587790643495113
|
- rid: 1324587790643495305
|
||||||
- rid: 1324587790643495114
|
- rid: 1324587790643495306
|
||||||
- rid: 6852985685364965378
|
- rid: 6852985685364965378
|
||||||
- rid: 6852985685364965379
|
- rid: 6852985685364965379
|
||||||
- rid: 6852985685364965380
|
- rid: 6852985685364965380
|
||||||
- rid: 6852985685364965381
|
- rid: 6852985685364965381
|
||||||
- rid: 1324587790643495115
|
- rid: 1324587790643495307
|
||||||
- rid: 1324587790643495116
|
- rid: 1324587790643495308
|
||||||
- rid: 6852985685364965384
|
- rid: 6852985685364965384
|
||||||
- rid: 6852985685364965385
|
- rid: 6852985685364965385
|
||||||
- rid: 1324587790643495117
|
- rid: 1324587790643495309
|
||||||
- rid: 1324587790643495118
|
- rid: 1324587790643495310
|
||||||
- rid: 1324587790643495119
|
- rid: 1324587790643495311
|
||||||
- rid: 1324587790643495120
|
- rid: 1324587790643495312
|
||||||
- rid: 1324587790643495121
|
- rid: 1324587790643495313
|
||||||
- rid: 1324587790643495122
|
- rid: 1324587790643495314
|
||||||
- rid: 6852985685364965392
|
- rid: 6852985685364965392
|
||||||
- rid: 1324587790643495123
|
- rid: 1324587790643495315
|
||||||
- rid: 6852985685364965394
|
- rid: 6852985685364965394
|
||||||
- rid: 8712630790384254976
|
- rid: 8712630790384254976
|
||||||
- rid: 5092397466944798720
|
- rid: 5092397466944798720
|
||||||
- rid: 1324587790643495124
|
- rid: 1324587790643495316
|
||||||
m_RuntimeSettings:
|
m_RuntimeSettings:
|
||||||
m_List:
|
m_List:
|
||||||
- rid: 6852985685364965378
|
- rid: 6852985685364965378
|
||||||
@@ -97,14 +97,14 @@ MonoBehaviour:
|
|||||||
references:
|
references:
|
||||||
version: 2
|
version: 2
|
||||||
RefIds:
|
RefIds:
|
||||||
- rid: 1324587790643495113
|
- rid: 1324587790643495305
|
||||||
type: {class: URPShaderStrippingSetting, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
type: {class: URPShaderStrippingSetting, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 0
|
m_Version: 0
|
||||||
m_StripUnusedPostProcessingVariants: 1
|
m_StripUnusedPostProcessingVariants: 1
|
||||||
m_StripUnusedVariants: 1
|
m_StripUnusedVariants: 1
|
||||||
m_StripScreenCoordOverrideVariants: 1
|
m_StripScreenCoordOverrideVariants: 1
|
||||||
- rid: 1324587790643495114
|
- rid: 1324587790643495306
|
||||||
type: {class: UniversalRenderPipelineEditorShaders, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
type: {class: UniversalRenderPipelineEditorShaders, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||||
data:
|
data:
|
||||||
m_AutodeskInteractive: {fileID: 4800000, guid: 0e9d5a909a1f7e84882a534d0d11e49f, type: 3}
|
m_AutodeskInteractive: {fileID: 4800000, guid: 0e9d5a909a1f7e84882a534d0d11e49f, type: 3}
|
||||||
@@ -116,7 +116,7 @@ MonoBehaviour:
|
|||||||
m_DefaultSpeedTree7Shader: {fileID: 4800000, guid: 0f4122b9a743b744abe2fb6a0a88868b, type: 3}
|
m_DefaultSpeedTree7Shader: {fileID: 4800000, guid: 0f4122b9a743b744abe2fb6a0a88868b, type: 3}
|
||||||
m_DefaultSpeedTree8Shader: {fileID: -6465566751694194690, guid: 9920c1f1781549a46ba081a2a15a16ec, type: 3}
|
m_DefaultSpeedTree8Shader: {fileID: -6465566751694194690, guid: 9920c1f1781549a46ba081a2a15a16ec, type: 3}
|
||||||
m_DefaultSpeedTree9Shader: {fileID: -6465566751694194690, guid: cbd3e1cc4ae141c42a30e33b4d666a61, type: 3}
|
m_DefaultSpeedTree9Shader: {fileID: -6465566751694194690, guid: cbd3e1cc4ae141c42a30e33b4d666a61, type: 3}
|
||||||
- rid: 1324587790643495115
|
- rid: 1324587790643495307
|
||||||
type: {class: Renderer2DResources, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
type: {class: Renderer2DResources, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 0
|
m_Version: 0
|
||||||
@@ -131,7 +131,7 @@ MonoBehaviour:
|
|||||||
m_DefaultLitMaterial: {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2}
|
m_DefaultLitMaterial: {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2}
|
||||||
m_DefaultUnlitMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
|
m_DefaultUnlitMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
|
||||||
m_DefaultMaskMaterial: {fileID: 2100000, guid: 15d0c3709176029428a0da2f8cecf0b5, type: 2}
|
m_DefaultMaskMaterial: {fileID: 2100000, guid: 15d0c3709176029428a0da2f8cecf0b5, type: 2}
|
||||||
- rid: 1324587790643495116
|
- rid: 1324587790643495308
|
||||||
type: {class: UniversalRenderPipelineEditorMaterials, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
type: {class: UniversalRenderPipelineEditorMaterials, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||||
data:
|
data:
|
||||||
m_DefaultMaterial: {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
m_DefaultMaterial: {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
||||||
@@ -140,7 +140,7 @@ MonoBehaviour:
|
|||||||
m_DefaultTerrainMaterial: {fileID: 2100000, guid: 594ea882c5a793440b60ff72d896021e, type: 2}
|
m_DefaultTerrainMaterial: {fileID: 2100000, guid: 594ea882c5a793440b60ff72d896021e, type: 2}
|
||||||
m_DefaultDecalMaterial: {fileID: 2100000, guid: 31d0dcc6f2dd4e4408d18036a2c93862, type: 2}
|
m_DefaultDecalMaterial: {fileID: 2100000, guid: 31d0dcc6f2dd4e4408d18036a2c93862, type: 2}
|
||||||
m_DefaultSpriteMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
|
m_DefaultSpriteMaterial: {fileID: 2100000, guid: 9dfc825aed78fcd4ba02077103263b40, type: 2}
|
||||||
- rid: 1324587790643495117
|
- rid: 1324587790643495309
|
||||||
type: {class: GPUResidentDrawerResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.GPUDriven.Runtime}
|
type: {class: GPUResidentDrawerResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.GPUDriven.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 0
|
m_Version: 0
|
||||||
@@ -153,13 +153,13 @@ MonoBehaviour:
|
|||||||
m_OcclusionCullingDebugKernels: {fileID: 7200000, guid: b23e766bcf50ca4438ef186b174557df, type: 3}
|
m_OcclusionCullingDebugKernels: {fileID: 7200000, guid: b23e766bcf50ca4438ef186b174557df, type: 3}
|
||||||
m_DebugOcclusionTestPS: {fileID: 4800000, guid: d3f0849180c2d0944bc71060693df100, type: 3}
|
m_DebugOcclusionTestPS: {fileID: 4800000, guid: d3f0849180c2d0944bc71060693df100, type: 3}
|
||||||
m_DebugOccluderPS: {fileID: 4800000, guid: b3c92426a88625841ab15ca6a7917248, type: 3}
|
m_DebugOccluderPS: {fileID: 4800000, guid: b3c92426a88625841ab15ca6a7917248, type: 3}
|
||||||
- rid: 1324587790643495118
|
- rid: 1324587790643495310
|
||||||
type: {class: STP/RuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
type: {class: STP/RuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||||
data:
|
data:
|
||||||
m_setupCS: {fileID: 7200000, guid: 33be2e9a5506b2843bdb2bdff9cad5e1, type: 3}
|
m_setupCS: {fileID: 7200000, guid: 33be2e9a5506b2843bdb2bdff9cad5e1, type: 3}
|
||||||
m_preTaaCS: {fileID: 7200000, guid: a679dba8ec4d9ce45884a270b0e22dda, type: 3}
|
m_preTaaCS: {fileID: 7200000, guid: a679dba8ec4d9ce45884a270b0e22dda, type: 3}
|
||||||
m_taaCS: {fileID: 7200000, guid: 3923900e2b41b5e47bc25bfdcbcdc9e6, type: 3}
|
m_taaCS: {fileID: 7200000, guid: 3923900e2b41b5e47bc25bfdcbcdc9e6, type: 3}
|
||||||
- rid: 1324587790643495119
|
- rid: 1324587790643495311
|
||||||
type: {class: ProbeVolumeBakingResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
type: {class: ProbeVolumeBakingResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 1
|
m_Version: 1
|
||||||
@@ -172,12 +172,12 @@ MonoBehaviour:
|
|||||||
skyOcclusionRT: {fileID: -5126288278712620388, guid: 5a2a534753fbdb44e96c3c78b5a6999d, type: 3}
|
skyOcclusionRT: {fileID: -5126288278712620388, guid: 5a2a534753fbdb44e96c3c78b5a6999d, type: 3}
|
||||||
renderingLayerCS: {fileID: -6772857160820960102, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
|
renderingLayerCS: {fileID: -6772857160820960102, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
|
||||||
renderingLayerRT: {fileID: -5126288278712620388, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
|
renderingLayerRT: {fileID: -5126288278712620388, guid: 94a070d33e408384bafc1dea4a565df9, type: 3}
|
||||||
- rid: 1324587790643495120
|
- rid: 1324587790643495312
|
||||||
type: {class: ProbeVolumeGlobalSettings, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
type: {class: ProbeVolumeGlobalSettings, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 1
|
m_Version: 1
|
||||||
m_ProbeVolumeDisableStreamingAssets: 0
|
m_ProbeVolumeDisableStreamingAssets: 0
|
||||||
- rid: 1324587790643495121
|
- rid: 1324587790643495313
|
||||||
type: {class: ProbeVolumeDebugResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
type: {class: ProbeVolumeDebugResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 1
|
m_Version: 1
|
||||||
@@ -187,21 +187,21 @@ MonoBehaviour:
|
|||||||
probeVolumeOffsetDebugShader: {fileID: 4800000, guid: db8bd7436dc2c5f4c92655307d198381, type: 3}
|
probeVolumeOffsetDebugShader: {fileID: 4800000, guid: db8bd7436dc2c5f4c92655307d198381, type: 3}
|
||||||
probeSamplingDebugMesh: {fileID: -3555484719484374845, guid: 20be25aac4e22ee49a7db76fb3df6de2, type: 3}
|
probeSamplingDebugMesh: {fileID: -3555484719484374845, guid: 20be25aac4e22ee49a7db76fb3df6de2, type: 3}
|
||||||
numbersDisplayTex: {fileID: 2800000, guid: 73fe53b428c5b3440b7e87ee830b608a, type: 3}
|
numbersDisplayTex: {fileID: 2800000, guid: 73fe53b428c5b3440b7e87ee830b608a, type: 3}
|
||||||
- rid: 1324587790643495122
|
- rid: 1324587790643495314
|
||||||
type: {class: IncludeAdditionalRPAssets, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
type: {class: IncludeAdditionalRPAssets, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||||
data:
|
data:
|
||||||
m_version: 0
|
m_version: 0
|
||||||
m_IncludeReferencedInScenes: 0
|
m_IncludeReferencedInScenes: 0
|
||||||
m_IncludeAssetsByLabel: 0
|
m_IncludeAssetsByLabel: 0
|
||||||
m_LabelToInclude:
|
m_LabelToInclude:
|
||||||
- rid: 1324587790643495123
|
- rid: 1324587790643495315
|
||||||
type: {class: ProbeVolumeRuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
type: {class: ProbeVolumeRuntimeResources, ns: UnityEngine.Rendering, asm: Unity.RenderPipelines.Core.Runtime}
|
||||||
data:
|
data:
|
||||||
m_Version: 1
|
m_Version: 1
|
||||||
probeVolumeBlendStatesCS: {fileID: 7200000, guid: a3f7b8c99de28a94684cb1daebeccf5d, type: 3}
|
probeVolumeBlendStatesCS: {fileID: 7200000, guid: a3f7b8c99de28a94684cb1daebeccf5d, type: 3}
|
||||||
probeVolumeUploadDataCS: {fileID: 7200000, guid: 0951de5992461754fa73650732c4954c, type: 3}
|
probeVolumeUploadDataCS: {fileID: 7200000, guid: 0951de5992461754fa73650732c4954c, type: 3}
|
||||||
probeVolumeUploadDataL2CS: {fileID: 7200000, guid: 6196f34ed825db14b81fb3eb0ea8d931, type: 3}
|
probeVolumeUploadDataL2CS: {fileID: 7200000, guid: 6196f34ed825db14b81fb3eb0ea8d931, type: 3}
|
||||||
- rid: 1324587790643495124
|
- rid: 1324587790643495316
|
||||||
type: {class: UniversalRenderPipelineEditorAssets, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
type: {class: UniversalRenderPipelineEditorAssets, ns: UnityEngine.Rendering.Universal, asm: Unity.RenderPipelines.Universal.Runtime}
|
||||||
data:
|
data:
|
||||||
m_DefaultSettingsVolumeProfile: {fileID: 11400000, guid: eda47df5b85f4f249abf7abd73db2cb2, type: 2}
|
m_DefaultSettingsVolumeProfile: {fileID: 11400000, guid: eda47df5b85f4f249abf7abd73db2cb2, type: 2}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Octopus.Simulator
|
|||||||
panelConnectedObject.gameObject.SetActive(false);
|
panelConnectedObject.gameObject.SetActive(false);
|
||||||
panelPlacedObject.gameObject.SetActive(false);
|
panelPlacedObject.gameObject.SetActive(false);
|
||||||
//LogicWindow.gameObject.SetActive(false);
|
//LogicWindow.gameObject.SetActive(false);
|
||||||
//FindAnyObjectByType<WebReceiver>().onParameterRecived += RequestInfo;
|
FindAnyObjectByType<WebReceiver>().onParameterRecived += RequestInfo;
|
||||||
FindAnyObjectByType<MQTTManager>().onLogicUpdated += RequestInfo;
|
FindAnyObjectByType<MQTTManager>().onLogicUpdated += RequestInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,6 +94,16 @@ namespace Octopus.Simulator
|
|||||||
{
|
{
|
||||||
currentData = Data;
|
currentData = Data;
|
||||||
config = Data.webConfig;
|
config = Data.webConfig;
|
||||||
|
if (currentData.ModelFiles.Count >= 1)
|
||||||
|
{
|
||||||
|
SimulationModelFile files = currentData.ModelFiles[currentData.ModelFiles.Count - 1];
|
||||||
|
if (files.id.HasValue)
|
||||||
|
{
|
||||||
|
WebParameters.config.modelId = files.id.Value.ToString();
|
||||||
|
var saveload = FindAnyObjectByType<SaveLoadmanager>();
|
||||||
|
saveload.Onclick_Load(files.data.info);
|
||||||
|
}
|
||||||
|
}
|
||||||
QueueVisulization(Data.data.queues);
|
QueueVisulization(Data.data.queues);
|
||||||
ResourceVisulization(Data.data.resources);
|
ResourceVisulization(Data.data.resources);
|
||||||
StoreVisulization(Data.data.stores);
|
StoreVisulization(Data.data.stores);
|
||||||
|
|||||||
@@ -47,11 +47,11 @@ namespace Octopus.Simulator.Networks
|
|||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
mqttManager = this;
|
mqttManager = this;
|
||||||
//FindAnyObjectByType<WebReceiver>().onMqttConfigReceived += SetMqttConfig;
|
FindAnyObjectByType<WebReceiver>().onMqttConfigReceived += SetMqttConfig;
|
||||||
SetMqttConfig();
|
//SetMqttConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetMqttConfig()
|
public void SetMqttConfig(string json)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
string path = Application.streamingAssetsPath + MQTTpath;
|
string path = Application.streamingAssetsPath + MQTTpath;
|
||||||
@@ -59,10 +59,11 @@ namespace Octopus.Simulator.Networks
|
|||||||
using (StreamReader reader = new StreamReader(path))
|
using (StreamReader reader = new StreamReader(path))
|
||||||
{
|
{
|
||||||
json = reader.ReadToEnd();
|
json = reader.ReadToEnd();
|
||||||
} */
|
}
|
||||||
TextAsset json = Resources.Load<TextAsset>(MQTTpath);
|
TextAsset json = Resources.Load<TextAsset>(MQTTpath);
|
||||||
Debug.Log(json.text);
|
Debug.Log(json.text);
|
||||||
MQTTConfigList ConfigList = JsonConvert.DeserializeObject<MQTTConfigList>(json.text);
|
*/
|
||||||
|
MQTTConfigList ConfigList = JsonConvert.DeserializeObject<MQTTConfigList>(json);
|
||||||
var config = ConfigList.configs[0];
|
var config = ConfigList.configs[0];
|
||||||
string clientName = config.name;
|
string clientName = config.name;
|
||||||
string host = config.host;
|
string host = config.host;
|
||||||
|
|||||||
@@ -33,12 +33,12 @@ namespace Octopus.Simulator.Networks
|
|||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
webManager = this;
|
webManager = this;
|
||||||
//FindAnyObjectByType<WebReceiver>().onWebConfigReceived += SetWebConfig;
|
FindAnyObjectByType<WebReceiver>().onWebConfigReceived += SetWebConfig;
|
||||||
SetWebConfig();
|
//SetWebConfig();
|
||||||
SetApiConfig();
|
SetApiConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetWebConfig()
|
private void SetWebConfig(string json)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
string path = Application.streamingAssetsPath + WebPath;
|
string path = Application.streamingAssetsPath + WebPath;
|
||||||
@@ -47,10 +47,9 @@ namespace Octopus.Simulator.Networks
|
|||||||
{
|
{
|
||||||
json = reader.ReadToEnd();
|
json = reader.ReadToEnd();
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
var json = Resources.Load<TextAsset>(WebPath);
|
var json = Resources.Load<TextAsset>(WebPath);
|
||||||
|
*/
|
||||||
WebConfigList ConfigList = JsonConvert.DeserializeObject<WebConfigList>(json.text);
|
WebConfigList ConfigList = JsonConvert.DeserializeObject<WebConfigList>(json);
|
||||||
var config = ConfigList.configs[0];
|
var config = ConfigList.configs[0];
|
||||||
host = config.host;
|
host = config.host;
|
||||||
port = config.port;
|
port = config.port;
|
||||||
@@ -102,7 +101,7 @@ namespace Octopus.Simulator.Networks
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Request_Put(object inputclass,string type, System.Action<bool, string> ResultCallback)
|
public void Request_Put(object inputclass, string type, System.Action<bool, string> ResultCallback)
|
||||||
{
|
{
|
||||||
string json = JsonConvert.SerializeObject(inputclass);
|
string json = JsonConvert.SerializeObject(inputclass);
|
||||||
StartCoroutine(Web_Put(http + type, json, (result, text) =>
|
StartCoroutine(Web_Put(http + type, json, (result, text) =>
|
||||||
@@ -195,7 +194,7 @@ namespace Octopus.Simulator.Networks
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator Web_Put(string URL,string json, System.Action<bool, string> callback)
|
IEnumerator Web_Put(string URL, string json, System.Action<bool, string> callback)
|
||||||
{
|
{
|
||||||
byte[] data = { };
|
byte[] data = { };
|
||||||
using (UnityWebRequest request = UnityWebRequest.Put(URL, data))
|
using (UnityWebRequest request = UnityWebRequest.Put(URL, data))
|
||||||
|
|||||||
@@ -15,9 +15,8 @@ public class WebReceiver : MonoBehaviour
|
|||||||
|
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
Application.ExternalCall("loadingComplete");
|
Application.ExternalCall("loadingComplete");
|
||||||
*/
|
/*
|
||||||
config.projectId = "17";
|
config.projectId = "17";
|
||||||
//config.simulationId = "15";
|
//config.simulationId = "15";
|
||||||
config.logicId = "71";
|
config.logicId = "71";
|
||||||
@@ -25,6 +24,8 @@ public class WebReceiver : MonoBehaviour
|
|||||||
onParameterRecived += FindAnyObjectByType<ProjectDataManager>().RequestInfo;
|
onParameterRecived += FindAnyObjectByType<ProjectDataManager>().RequestInfo;
|
||||||
onParameterRecived += FindAnyObjectByType<LogicDataManager>().RequestInfo;
|
onParameterRecived += FindAnyObjectByType<LogicDataManager>().RequestInfo;
|
||||||
onParameterRecived?.Invoke();
|
onParameterRecived?.Invoke();
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user