MirzkisD1Ex0 4 роки тому
батько
коміт
0650ddf96c

+ 27 - 0
Assets/ToneTuneToolkit/Scripts/TextReader.cs

@@ -0,0 +1,27 @@
+using UnityEngine;
+using System.IO;
+
+namespace ToneTuneToolkit
+{
+    public class TextReader : MonoBehaviour
+    {
+        /// <summary>
+        /// 读取文本内容
+        /// </summary>
+        /// <param name="url">文件路径</param>
+        /// <param name="line">要读取的文件行数</param>
+        /// <returns></returns>
+        protected static string GetConfig(string url, int line)
+        {
+            string[] tempStringArray = File.ReadAllLines(url);
+            if (line > 0)
+            {
+                return tempStringArray[line - 1].Split('=')[1]; // 等号分隔 // 读取第二部分
+            }
+            else
+            {
+                return null;
+            }
+        }
+    }
+}

+ 11 - 0
Assets/ToneTuneToolkit/Scripts/TextReader.cs.meta

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

+ 76 - 22
Logs/AssetImportWorker0-prev.log → Logs/AssetImportWorker0.log

@@ -15,11 +15,11 @@ D:/_Data/project/unity/ToneTuneToolkit
 -logFile
 Logs/AssetImportWorker0.log
 -srvPort
-53857
+55842
 Successfully changed project path to: D:/_Data/project/unity/ToneTuneToolkit
 D:/_Data/project/unity/ToneTuneToolkit
 Using Asset Import Pipeline V2.
-Refreshing native plugins compatible for Editor in 39.01 ms, found 3 plugins.
+Refreshing native plugins compatible for Editor in 37.77 ms, found 3 plugins.
 Preloading 0 native plugins for Editor in 0.00 ms.
 Initialize engine version: 2020.3.13f1c1 (93b9df9a3ddc)
 [Subsystems] Discovering subsystems at path C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data/Resources/UnitySubsystems
@@ -35,37 +35,37 @@ Initialize mono
 Mono path[0] = 'C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data/Managed'
 Mono path[1] = 'C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data/MonoBleedingEdge/lib/mono/unityjit'
 Mono config path = 'C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data/MonoBleedingEdge/etc'
-Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56988
+Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=127.0.0.1:56112
 Begin MonoManager ReloadAssembly
 Registering precompiled unity dll's ...
 Register platform support module: C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll
-Registered in 0.003469 seconds.
+Registered in 0.003223 seconds.
 Native extension for WindowsStandalone target not found
-Refreshing native plugins compatible for Editor in 42.49 ms, found 3 plugins.
+Refreshing native plugins compatible for Editor in 38.48 ms, found 3 plugins.
 Preloading 0 native plugins for Editor in 0.00 ms.
 Mono: successfully reloaded assembly
-- Completed reload, in  0.993 seconds
+- Completed reload, in  0.940 seconds
 Platform modules already initialized, skipping
 Registering precompiled user dll's ...
-Registered in 0.003272 seconds.
+Registered in 0.003276 seconds.
 Begin MonoManager ReloadAssembly
 Native extension for WindowsStandalone target not found
-Refreshing native plugins compatible for Editor in 38.59 ms, found 3 plugins.
+Refreshing native plugins compatible for Editor in 38.31 ms, found 3 plugins.
 Preloading 0 native plugins for Editor in 0.00 ms.
 Mono: successfully reloaded assembly
-- Completed reload, in  1.109 seconds
+- Completed reload, in  1.072 seconds
 Platform modules already initialized, skipping
 ========================================================================
 Worker process is ready to serve import requests
 Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds
-Refreshing native plugins compatible for Editor in 0.42 ms, found 3 plugins.
+Refreshing native plugins compatible for Editor in 0.43 ms, found 3 plugins.
 Preloading 0 native plugins for Editor in 0.00 ms.
 Unloading 2095 Unused Serialized files (Serialized files now loaded: 0)
 System memory in use before: 95.9 MB.
 System memory in use after: 96.0 MB.
 
 Unloading 28 unused Assets to reduce memory usage. Loaded Objects now: 2536.
-Total: 3.966500 ms (FindLiveObjects: 0.950300 ms CreateObjectMapping: 0.177100 ms MarkObjects: 2.706400 ms  DeleteObjects: 0.130900 ms)
+Total: 2.227500 ms (FindLiveObjects: 0.196900 ms CreateObjectMapping: 0.082000 ms MarkObjects: 1.877500 ms  DeleteObjects: 0.070000 ms)
 
 AssetImportParameters requested are different than current active one (requested -> active):
   custom:framework-win-MediaFoundation: 216162199b28c13a410421893ffa2e32 -> 
@@ -79,30 +79,76 @@ AssetImportParameters requested are different than current active one (requested
   custom:audio-encoder-webm-vorbis: bf7c407c2cedff20999df2af8eb42d56 -> 
 ========================================================================
 Received Import Request.
-  path: Assets/ToneTuneToolkit/Scripts/Verifikado.cs
-  artifactKey: Guid(04891bc9063ecaf42ae89ad51c7debaf) Importer(815301076,1909f56bfc062723c751e8b465ee728b)
-Start importing Assets/ToneTuneToolkit/Scripts/Verifikado.cs using Guid(04891bc9063ecaf42ae89ad51c7debaf) Importer(815301076,1909f56bfc062723c751e8b465ee728b)  -> (artifact id: 'fce07007ac98ea2397d4ab07f9284566') in 0.048371 seconds 
-  Import took 0.070550 seconds .
+  path: Assets/ToneTuneToolkit/Scripts/CameraLookAround.cs
+  artifactKey: Guid(bd0d3bbe40b7eb94888bc73c37515ae4) Importer(815301076,1909f56bfc062723c751e8b465ee728b)
+Start importing Assets/ToneTuneToolkit/Scripts/CameraLookAround.cs using Guid(bd0d3bbe40b7eb94888bc73c37515ae4) Importer(815301076,1909f56bfc062723c751e8b465ee728b)  -> (artifact id: 'fe4d9e17000ca0fa0e589a1b2e8adc42') in 0.022932 seconds 
+  Import took 0.057014 seconds .
 
 ========================================================================
+Received Import Request.
+  Time since last request: 3.704702 seconds.
+  path: Assets/ToneTuneToolkit/Scripts/ObjectFloating.cs
+  artifactKey: Guid(8f0d0c38eb10c4d4bace2797a3d9e6b9) Importer(815301076,1909f56bfc062723c751e8b465ee728b)
+Start importing Assets/ToneTuneToolkit/Scripts/ObjectFloating.cs using Guid(8f0d0c38eb10c4d4bace2797a3d9e6b9) Importer(815301076,1909f56bfc062723c751e8b465ee728b)  -> (artifact id: 'aa9235313ff2b984e31af8be7df2446c') in 0.001935 seconds 
+  Import took 0.008301 seconds .
+
+========================================================================
+Received Import Request.
+  Time since last request: 38.199875 seconds.
+  path: Assets/ToneTuneToolkit/Scripts/TextReader.cs
+  artifactKey: Guid(cea7b1ceecbc691418d935275efce263) Importer(815301076,1909f56bfc062723c751e8b465ee728b)
+Start importing Assets/ToneTuneToolkit/Scripts/TextReader.cs using Guid(cea7b1ceecbc691418d935275efce263) Importer(815301076,1909f56bfc062723c751e8b465ee728b)  -> (artifact id: 'f23e54c2405808e60bc318bad9a5d02e') in 0.002563 seconds 
+  Import took 0.043073 seconds .
+
+========================================================================
+Received Prepare
+Registering precompiled user dll's ...
+Registered in 0.003088 seconds.
+Begin MonoManager ReloadAssembly
+Native extension for WindowsStandalone target not found
+Refreshing native plugins compatible for Editor in 0.43 ms, found 3 plugins.
+Preloading 0 native plugins for Editor in 0.00 ms.
+Mono: successfully reloaded assembly
+- Completed reload, in  1.263 seconds
+Platform modules already initialized, skipping
+Refreshing native plugins compatible for Editor in 0.46 ms, found 3 plugins.
+Preloading 0 native plugins for Editor in 0.00 ms.
+Unloading 2086 Unused Serialized files (Serialized files now loaded: 0)
+System memory in use before: 95.4 MB.
+System memory in use after: 95.5 MB.
+
+Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 2541.
+Total: 2.953900 ms (FindLiveObjects: 0.215000 ms CreateObjectMapping: 0.095800 ms MarkObjects: 2.620600 ms  DeleteObjects: 0.021100 ms)
+
+AssetImportParameters requested are different than current active one (requested -> active):
+  custom:framework-win-MediaFoundation: 216162199b28c13a410421893ffa2e32 -> 
+  custom:video-decoder-ogg-theora: a1e56fd34408186e4bbccfd4996cb3dc -> 
+  custom:container-muxer-webm: aa71ff27fc2769a1b78a27578f13a17b -> 
+  custom:container-demuxer-webm: 4f35f7cbe854078d1ac9338744f61a02 -> 
+  custom:container-demuxer-ogg: 62fdf1f143b41e24485cea50d1cbac27 -> 
+  custom:video-encoder-webm-vp8: eb34c28f22e8b96e1ab97ce403110664 -> 
+  custom:video-decoder-webm-vp8: 9c59270c3fd7afecdb556c50c9e8de78 -> 
+  custom:audio-decoder-ogg-vorbis: bf7c407c2cedff20999df2af8eb42d56 -> 
+  custom:audio-encoder-webm-vorbis: bf7c407c2cedff20999df2af8eb42d56 -> 
+========================================================================
 Received Prepare
 Registering precompiled user dll's ...
-Registered in 0.003369 seconds.
+Registered in 0.003119 seconds.
 Begin MonoManager ReloadAssembly
 Native extension for WindowsStandalone target not found
-Refreshing native plugins compatible for Editor in 0.42 ms, found 3 plugins.
+Refreshing native plugins compatible for Editor in 0.45 ms, found 3 plugins.
 Preloading 0 native plugins for Editor in 0.00 ms.
 Mono: successfully reloaded assembly
-- Completed reload, in  0.997 seconds
+- Completed reload, in  0.990 seconds
 Platform modules already initialized, skipping
-Refreshing native plugins compatible for Editor in 0.42 ms, found 3 plugins.
+Refreshing native plugins compatible for Editor in 0.48 ms, found 3 plugins.
 Preloading 0 native plugins for Editor in 0.00 ms.
-Unloading 2085 Unused Serialized files (Serialized files now loaded: 0)
+Unloading 2086 Unused Serialized files (Serialized files now loaded: 0)
 System memory in use before: 95.4 MB.
 System memory in use after: 95.5 MB.
 
-Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 2540.
-Total: 2.274900 ms (FindLiveObjects: 0.182900 ms CreateObjectMapping: 0.076200 ms MarkObjects: 1.998300 ms  DeleteObjects: 0.016400 ms)
+Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 2545.
+Total: 2.320400 ms (FindLiveObjects: 0.403200 ms CreateObjectMapping: 0.092600 ms MarkObjects: 1.802500 ms  DeleteObjects: 0.020800 ms)
 
 AssetImportParameters requested are different than current active one (requested -> active):
   custom:framework-win-MediaFoundation: 216162199b28c13a410421893ffa2e32 -> 
@@ -114,4 +160,12 @@ AssetImportParameters requested are different than current active one (requested
   custom:video-decoder-webm-vp8: 9c59270c3fd7afecdb556c50c9e8de78 -> 
   custom:audio-decoder-ogg-vorbis: bf7c407c2cedff20999df2af8eb42d56 -> 
   custom:audio-encoder-webm-vorbis: bf7c407c2cedff20999df2af8eb42d56 -> 
+========================================================================
+Received Import Request.
+  Time since last request: 48.795125 seconds.
+  path: Assets/ToneTuneToolkit/Scripts/TextReader.cs
+  artifactKey: Guid(cea7b1ceecbc691418d935275efce263) Importer(815301076,1909f56bfc062723c751e8b465ee728b)
+Start importing Assets/ToneTuneToolkit/Scripts/TextReader.cs using Guid(cea7b1ceecbc691418d935275efce263) Importer(815301076,1909f56bfc062723c751e8b465ee728b)  -> (artifact id: '455955717d790d88fe772a8ca47712fa') in 0.004620 seconds 
+  Import took 0.020075 seconds .
+
 AssetImportWorkerClient::OnTransportError - code=2 error=End of file

+ 6 - 0
Logs/shadercompiler-AssetImportWorker0.log

@@ -0,0 +1,6 @@
+Base path: 'C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data', plugins path 'C:/workflow/software/Unity/2020.3.13f1c1/Editor/Data/PlaybackEngines'
+Cmd: initializeCompiler
+
+Unhandled exception: Protocol error - failed to read magic number (error -2147483644, transferred 0/4)
+
+Quitting shader compiler process