remove old define

This commit is contained in:
陈思海 2026-04-20 17:38:22 +08:00
parent 9cb3b1e511
commit 65e4536579
12 changed files with 15 additions and 178 deletions

View File

@ -22,50 +22,30 @@ namespace AlicizaX.Debugger.Runtime
{
DrawItem("Product Name", Application.productName);
DrawItem("Company Name", Application.companyName);
#if UNITY_5_6_OR_NEWER
DrawItem("Game Identifier", Application.identifier);
#else
DrawItem("Game Identifier", Application.bundleIdentifier);
#endif
DrawItem("Game Framework Version", AppVersion.GameFrameworkVersion);
DrawItem("Game Version", Utility.Text.Format("{0} ({1})", AppVersion.GameVersion, AppVersion.GameFrameworkVersion));
// DrawItem("Resource Version", m_BaseComponent.EditorResourceMode ? "Unavailable in editor resource mode" : (string.IsNullOrEmpty(m_ResourceComponent.ApplicableGameVersion) ? "Unknown" : Utility.Text.Format("{0} ({1})", m_ResourceComponent.ApplicableGameVersion, m_ResourceComponent.InternalResourceVersion)));
DrawItem("Application Version", Application.version);
DrawItem("Unity Version", Application.unityVersion);
DrawItem("Platform", Application.platform.ToString());
DrawItem("System Language", Application.systemLanguage.ToString());
DrawItem("Cloud Project Id", Application.cloudProjectId);
#if UNITY_5_6_OR_NEWER
DrawItem("Build Guid", Application.buildGUID);
#endif
DrawItem("Target Frame Rate", Application.targetFrameRate.ToString());
DrawItem("Internet Reachability", Application.internetReachability.ToString());
DrawItem("Background Loading Priority", Application.backgroundLoadingPriority.ToString());
DrawItem("Is Playing", Application.isPlaying.ToString());
#if UNITY_5_5_OR_NEWER
DrawItem("Splash Screen Is Finished", SplashScreen.isFinished.ToString());
#else
DrawItem("Is Showing Splash Screen", Application.isShowingSplashScreen.ToString());
#endif
DrawItem("Run In Background", Application.runInBackground.ToString());
#if UNITY_5_5_OR_NEWER
DrawItem("Install Name", Application.installerName);
#endif
DrawItem("Install Mode", Application.installMode.ToString());
DrawItem("Sandbox Type", Application.sandboxType.ToString());
DrawItem("Is Mobile Platform", Application.isMobilePlatform.ToString());
DrawItem("Is Console Platform", Application.isConsolePlatform.ToString());
DrawItem("Is Editor", Application.isEditor.ToString());
DrawItem("Is Debug Build", Debug.isDebugBuild.ToString());
#if UNITY_5_6_OR_NEWER
DrawItem("Is Focused", Application.isFocused.ToString());
#endif
#if UNITY_2018_2_OR_NEWER
DrawItem("Is Batch Mode", Application.isBatchMode.ToString());
#endif
#if UNITY_5_3
DrawItem("Stack Trace Log Type", Application.stackTraceLogType.ToString());
#endif
}
GUILayout.EndVertical();
}

View File

@ -20,58 +20,28 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Device Version", SystemInfo.graphicsDeviceVersion);
DrawItem("Memory Size", Utility.Text.Format("{0} MB", SystemInfo.graphicsMemorySize));
DrawItem("Multi Threaded", SystemInfo.graphicsMultiThreaded.ToString());
#if UNITY_2019_3_OR_NEWER
DrawItem("Rendering Threading Mode", SystemInfo.renderingThreadingMode.ToString());
#endif
#if UNITY_2020_1_OR_NEWER
DrawItem("HRD Display Support Flags", SystemInfo.hdrDisplaySupportFlags.ToString());
#endif
DrawItem("Shader Level", GetShaderLevelString(SystemInfo.graphicsShaderLevel));
DrawItem("Global Maximum LOD", Shader.globalMaximumLOD.ToString());
#if UNITY_5_6_OR_NEWER
DrawItem("Global Render Pipeline", Shader.globalRenderPipeline);
#endif
#if UNITY_2020_2_OR_NEWER
DrawItem("Min OpenGLES Version", Graphics.minOpenGLESVersion.ToString());
#endif
#if UNITY_5_5_OR_NEWER
DrawItem("Active Tier", Graphics.activeTier.ToString());
#endif
#if UNITY_2017_2_OR_NEWER
DrawItem("Active Color Gamut", Graphics.activeColorGamut.ToString());
#endif
#if UNITY_2019_2_OR_NEWER
DrawItem("Preserve Frame Buffer Alpha", Graphics.preserveFramebufferAlpha.ToString());
#endif
DrawItem("NPOT Support", SystemInfo.npotSupport.ToString());
DrawItem("Max Texture Size", SystemInfo.maxTextureSize.ToString());
DrawItem("Supported Render Target Count", SystemInfo.supportedRenderTargetCount.ToString());
#if UNITY_2019_3_OR_NEWER
DrawItem("Supported Random Write Target Count", SystemInfo.supportedRandomWriteTargetCount.ToString());
#endif
#if UNITY_5_4_OR_NEWER
DrawItem("Copy Texture Support", SystemInfo.copyTextureSupport.ToString());
#endif
#if UNITY_5_5_OR_NEWER
DrawItem("Uses Reversed ZBuffer", SystemInfo.usesReversedZBuffer.ToString());
#endif
#if UNITY_5_6_OR_NEWER
DrawItem("Max Cubemap Size", SystemInfo.maxCubemapSize.ToString());
DrawItem("Graphics UV Starts At Top", SystemInfo.graphicsUVStartsAtTop.ToString());
#endif
#if UNITY_2020_2_OR_NEWER
DrawItem("Constant Buffer Offset Alignment", SystemInfo.constantBufferOffsetAlignment.ToString());
#elif UNITY_2019_1_OR_NEWER
DrawItem("Min Constant Buffer Offset Alignment", SystemInfo.minConstantBufferOffsetAlignment.ToString());
#endif
#if UNITY_2018_3_OR_NEWER
DrawItem("Has Hidden Surface Removal On GPU", SystemInfo.hasHiddenSurfaceRemovalOnGPU.ToString());
DrawItem("Has Dynamic Uniform Array Indexing In Fragment Shaders", SystemInfo.hasDynamicUniformArrayIndexingInFragmentShaders.ToString());
#endif
#if UNITY_2019_2_OR_NEWER
DrawItem("Has Mip Max Level", SystemInfo.hasMipMaxLevel.ToString());
#endif
#if UNITY_2019_3_OR_NEWER
DrawItem("Uses Load Store Actions", SystemInfo.usesLoadStoreActions.ToString());
DrawItem("Max Compute Buffer Inputs Compute", SystemInfo.maxComputeBufferInputsCompute.ToString());
DrawItem("Max Compute Buffer Inputs Domain", SystemInfo.maxComputeBufferInputsDomain.ToString());
@ -83,73 +53,36 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Max Compute Work Group Size X", SystemInfo.maxComputeWorkGroupSizeX.ToString());
DrawItem("Max Compute Work Group Size Y", SystemInfo.maxComputeWorkGroupSizeY.ToString());
DrawItem("Max Compute Work Group Size Z", SystemInfo.maxComputeWorkGroupSizeZ.ToString());
#endif
#if UNITY_5_3 || UNITY_5_4
DrawItem("Supports Stencil", SystemInfo.supportsStencil.ToString());
DrawItem("Supports Render Textures", SystemInfo.supportsRenderTextures.ToString());
#endif
DrawItem("Supports Sparse Textures", SystemInfo.supportsSparseTextures.ToString());
DrawItem("Supports 3D Textures", SystemInfo.supports3DTextures.ToString());
DrawItem("Supports Shadows", SystemInfo.supportsShadows.ToString());
DrawItem("Supports Raw Shadow Depth Sampling", SystemInfo.supportsRawShadowDepthSampling.ToString());
#if !UNITY_2019_1_OR_NEWER
DrawItem("Supports Render To Cubemap", SystemInfo.supportsRenderToCubemap.ToString());
DrawItem("Supports Image Effects", SystemInfo.supportsImageEffects.ToString());
#endif
DrawItem("Supports Compute Shader", SystemInfo.supportsComputeShaders.ToString());
DrawItem("Supports Instancing", SystemInfo.supportsInstancing.ToString());
#if UNITY_5_4_OR_NEWER
DrawItem("Supports 2D Array Textures", SystemInfo.supports2DArrayTextures.ToString());
DrawItem("Supports Motion Vectors", SystemInfo.supportsMotionVectors.ToString());
#endif
#if UNITY_5_5_OR_NEWER
DrawItem("Supports Cubemap Array Textures", SystemInfo.supportsCubemapArrayTextures.ToString());
#endif
#if UNITY_5_6_OR_NEWER
DrawItem("Supports 3D Render Textures", SystemInfo.supports3DRenderTextures.ToString());
#endif
#if UNITY_2017_2_OR_NEWER && !UNITY_2017_2_0 || UNITY_2017_1_4
DrawItem("Supports Texture Wrap Mirror Once", SystemInfo.supportsTextureWrapMirrorOnce.ToString());
#endif
#if UNITY_2019_1_OR_NEWER
DrawItem("Supports Graphics Fence", SystemInfo.supportsGraphicsFence.ToString());
#elif UNITY_2017_3_OR_NEWER
DrawItem("Supports GPU Fence", SystemInfo.supportsGPUFence.ToString());
#endif
#if UNITY_2017_3_OR_NEWER
DrawItem("Supports Async Compute", SystemInfo.supportsAsyncCompute.ToString());
DrawItem("Supports Multi-sampled Textures", SystemInfo.supportsMultisampledTextures.ToString());
#endif
#if UNITY_2018_1_OR_NEWER
DrawItem("Supports Async GPU Readback", SystemInfo.supportsAsyncGPUReadback.ToString());
DrawItem("Supports 32bits Index Buffer", SystemInfo.supports32bitsIndexBuffer.ToString());
DrawItem("Supports Hardware Quad Topology", SystemInfo.supportsHardwareQuadTopology.ToString());
#endif
#if UNITY_2018_2_OR_NEWER
DrawItem("Supports Mip Streaming", SystemInfo.supportsMipStreaming.ToString());
DrawItem("Supports Multi-sample Auto Resolve", SystemInfo.supportsMultisampleAutoResolve.ToString());
#endif
#if UNITY_2018_3_OR_NEWER
DrawItem("Supports Separated Render Targets Blend", SystemInfo.supportsSeparatedRenderTargetsBlend.ToString());
#endif
#if UNITY_2019_1_OR_NEWER
DrawItem("Supports Set Constant Buffer", SystemInfo.supportsSetConstantBuffer.ToString());
#endif
#if UNITY_2019_3_OR_NEWER
DrawItem("Supports Geometry Shaders", SystemInfo.supportsGeometryShaders.ToString());
DrawItem("Supports Ray Tracing", SystemInfo.supportsRayTracing.ToString());
DrawItem("Supports Tessellation Shaders", SystemInfo.supportsTessellationShaders.ToString());
#endif
#if UNITY_2020_1_OR_NEWER
DrawItem("Supports Compressed 3D Textures", SystemInfo.supportsCompressed3DTextures.ToString());
DrawItem("Supports Conservative Raster", SystemInfo.supportsConservativeRaster.ToString());
DrawItem("Supports GPU Recorder", SystemInfo.supportsGpuRecorder.ToString());
#endif
#if UNITY_2020_2_OR_NEWER
DrawItem("Supports Multi-sampled 2D Array Textures", SystemInfo.supportsMultisampled2DArrayTextures.ToString());
DrawItem("Supports Multiview", SystemInfo.supportsMultiview.ToString());
DrawItem("Supports Render Target Array Index From Vertex Shader", SystemInfo.supportsRenderTargetArrayIndexFromVertexShader.ToString());
#endif
}
GUILayout.EndVertical();
}

View File

@ -18,9 +18,7 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Persistent Data Path", Utility.Path.GetRegularPath(Application.persistentDataPath));
DrawItem("Streaming Assets Path", Utility.Path.GetRegularPath(Application.streamingAssetsPath));
DrawItem("Temporary Cache Path", Utility.Path.GetRegularPath(Application.temporaryCachePath));
#if UNITY_2018_3_OR_NEWER
DrawItem("Console Log Path", Utility.Path.GetRegularPath(Application.consoleLogPath));
#endif
}
GUILayout.EndVertical();
}

View File

@ -19,39 +19,17 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Supported", Profiler.supported.ToString());
DrawItem("Enabled", Profiler.enabled.ToString());
DrawItem("Enable Binary Log", Profiler.enableBinaryLog ? Utility.Text.Format("True, {0}", Profiler.logFile) : "False");
#if UNITY_2019_3_OR_NEWER
DrawItem("Enable Allocation Callstacks", Profiler.enableAllocationCallstacks.ToString());
#endif
#if UNITY_2018_3_OR_NEWER
DrawItem("Area Count", Profiler.areaCount.ToString());
#endif
#if UNITY_5_3 || UNITY_5_4
DrawItem("Max Samples Number Per Frame", Profiler.maxNumberOfSamplesPerFrame.ToString());
#endif
#if UNITY_2018_3_OR_NEWER
DrawItem("Max Used Memory", GetByteLengthString(Profiler.maxUsedMemory));
#endif
#if UNITY_5_6_OR_NEWER
DrawItem("Mono Used Size", GetByteLengthString(Profiler.GetMonoUsedSizeLong()));
DrawItem("Mono Heap Size", GetByteLengthString(Profiler.GetMonoHeapSizeLong()));
DrawItem("Used Heap Size", GetByteLengthString(Profiler.usedHeapSizeLong));
DrawItem("Total Allocated Memory", GetByteLengthString(Profiler.GetTotalAllocatedMemoryLong()));
DrawItem("Total Reserved Memory", GetByteLengthString(Profiler.GetTotalReservedMemoryLong()));
DrawItem("Total Unused Reserved Memory", GetByteLengthString(Profiler.GetTotalUnusedReservedMemoryLong()));
#else
DrawItem("Mono Used Size", GetByteLengthString(Profiler.GetMonoUsedSize()));
DrawItem("Mono Heap Size", GetByteLengthString(Profiler.GetMonoHeapSize()));
DrawItem("Used Heap Size", GetByteLengthString(Profiler.usedHeapSize));
DrawItem("Total Allocated Memory", GetByteLengthString(Profiler.GetTotalAllocatedMemory()));
DrawItem("Total Reserved Memory", GetByteLengthString(Profiler.GetTotalReservedMemory()));
DrawItem("Total Unused Reserved Memory", GetByteLengthString(Profiler.GetTotalUnusedReservedMemory()));
#endif
#if UNITY_2018_1_OR_NEWER
DrawItem("Allocated Memory For Graphics Driver", GetByteLengthString(Profiler.GetAllocatedMemoryForGraphicsDriver()));
#endif
#if UNITY_5_5_OR_NEWER
DrawItem("Temp Allocator Size", GetByteLengthString(Profiler.GetTempAllocatorSize()));
#endif
DrawItem("Marshal Cached HGlobal Size", GetByteLengthString(Utility.Marshal.CachedHGlobalSize));
}
GUILayout.EndVertical();

View File

@ -38,38 +38,35 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Master Texture Limit", QualitySettings.globalTextureMipmapLimit.ToString());
DrawItem("Anisotropic Filtering", QualitySettings.anisotropicFiltering.ToString());
DrawItem("Anti Aliasing", QualitySettings.antiAliasing.ToString());
#if UNITY_5_5_OR_NEWER
DrawItem("Soft Particles", QualitySettings.softParticles.ToString());
#endif
DrawItem("Soft Vegetation", QualitySettings.softVegetation.ToString());
DrawItem("Realtime Reflection Probes", QualitySettings.realtimeReflectionProbes.ToString());
DrawItem("Billboards Face Camera Position", QualitySettings.billboardsFaceCameraPosition.ToString());
#if UNITY_2017_1_OR_NEWER
DrawItem("Resolution Scaling Fixed DPI Factor", QualitySettings.resolutionScalingFixedDPIFactor.ToString());
#endif
#if UNITY_2018_2_OR_NEWER
DrawItem("Texture Streaming Enabled", QualitySettings.streamingMipmapsActive.ToString());
DrawItem("Texture Streaming Add All Cameras", QualitySettings.streamingMipmapsAddAllCameras.ToString());
DrawItem("Texture Streaming Memory Budget", QualitySettings.streamingMipmapsMemoryBudget.ToString());
DrawItem("Texture Streaming Renderers Per Frame", QualitySettings.streamingMipmapsRenderersPerFrame.ToString());
DrawItem("Texture Streaming Max Level Reduction", QualitySettings.streamingMipmapsMaxLevelReduction.ToString());
DrawItem("Texture Streaming Max File IO Requests", QualitySettings.streamingMipmapsMaxFileIORequests.ToString());
#endif
}
GUILayout.EndVertical();
GUILayout.Label("<b>Shadows Information</b>");
GUILayout.BeginVertical("box");
{
#if UNITY_2017_1_OR_NEWER
DrawItem("Shadowmask Mode", QualitySettings.shadowmaskMode.ToString());
#endif
#if UNITY_5_5_OR_NEWER
DrawItem("Shadow Quality", QualitySettings.shadows.ToString());
#endif
#if UNITY_5_4_OR_NEWER
DrawItem("Shadow Resolution", QualitySettings.shadowResolution.ToString());
#endif
DrawItem("Shadow Projection", QualitySettings.shadowProjection.ToString());
DrawItem("Shadow Distance", QualitySettings.shadowDistance.ToString());
DrawItem("Shadow Near Plane Offset", QualitySettings.shadowNearPlaneOffset.ToString());
@ -82,20 +79,18 @@ namespace AlicizaX.Debugger.Runtime
GUILayout.Label("<b>Other Information</b>");
GUILayout.BeginVertical("box");
{
#if UNITY_2019_1_OR_NEWER
DrawItem("Skin Weights", QualitySettings.skinWeights.ToString());
#else
DrawItem("Blend Weights", QualitySettings.blendWeights.ToString());
#endif
DrawItem("VSync Count", QualitySettings.vSyncCount.ToString());
DrawItem("LOD Bias", QualitySettings.lodBias.ToString());
DrawItem("Maximum LOD Level", QualitySettings.maximumLODLevel.ToString());
DrawItem("Particle Raycast Budget", QualitySettings.particleRaycastBudget.ToString());
DrawItem("Async Upload Time Slice", Utility.Text.Format("{0} ms", QualitySettings.asyncUploadTimeSlice));
DrawItem("Async Upload Buffer Size", Utility.Text.Format("{0} MB", QualitySettings.asyncUploadBufferSize));
#if UNITY_2018_3_OR_NEWER
DrawItem("Async Upload Persistent Buffer", QualitySettings.asyncUploadPersistentBuffer.ToString());
#endif
}
GUILayout.EndVertical();
}

View File

@ -93,11 +93,8 @@ namespace AlicizaX.Debugger.Runtime
for (int i = 0; i < samples.Length; i++)
{
long sampleSize = 0L;
#if UNITY_5_6_OR_NEWER
sampleSize = Profiler.GetRuntimeMemorySizeLong(samples[i]);
#else
sampleSize = Profiler.GetRuntimeMemorySize(samples[i]);
#endif
m_SampleSize += sampleSize;
m_Samples.Add(new Sample(samples[i].name, samples[i].GetType().Name, sampleSize));
}

View File

@ -71,11 +71,7 @@ namespace AlicizaX.Debugger.Runtime
for (int i = 0; i < samples.Length; i++)
{
long sampleSize = 0L;
#if UNITY_5_6_OR_NEWER
sampleSize = Profiler.GetRuntimeMemorySizeLong(samples[i]);
#else
sampleSize = Profiler.GetRuntimeMemorySize(samples[i]);
#endif
string name = samples[i].GetType().Name;
m_SampleCount++;
m_SampleSize += sampleSize;

View File

@ -17,9 +17,7 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Scene Count In Build Settings", SceneManager.sceneCountInBuildSettings.ToString());
UnityEngine.SceneManagement.Scene activeScene = SceneManager.GetActiveScene();
#if UNITY_2018_3_OR_NEWER
DrawItem("Active Scene Handle", activeScene.handle.ToString());
#endif
DrawItem("Active Scene Name", activeScene.name);
DrawItem("Active Scene Path", activeScene.path);
DrawItem("Active Scene Build Index", activeScene.buildIndex.ToString());
@ -27,9 +25,7 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Active Scene Is Loaded", activeScene.isLoaded.ToString());
DrawItem("Active Scene Is Valid", activeScene.IsValid().ToString());
DrawItem("Active Scene Root Count", activeScene.rootCount.ToString());
#if UNITY_2019_1_OR_NEWER
DrawItem("Active Scene Is Sub Scene", activeScene.isSubScene.ToString());
#endif
}
GUILayout.EndVertical();
}

View File

@ -18,25 +18,17 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Screen DPI", Screen.dpi.ToString("F2"));
DrawItem("Screen Orientation", Screen.orientation.ToString());
DrawItem("Is Full Screen", Screen.fullScreen.ToString());
#if UNITY_2018_1_OR_NEWER
DrawItem("Full Screen Mode", Screen.fullScreenMode.ToString());
#endif
DrawItem("Sleep Timeout", GetSleepTimeoutDescription(Screen.sleepTimeout));
#if UNITY_2019_2_OR_NEWER
DrawItem("Brightness", Screen.brightness.ToString("F2"));
#endif
DrawItem("Cursor Visible", Cursor.visible.ToString());
DrawItem("Cursor Lock State", Cursor.lockState.ToString());
DrawItem("Auto Landscape Left", Screen.autorotateToLandscapeLeft.ToString());
DrawItem("Auto Landscape Right", Screen.autorotateToLandscapeRight.ToString());
DrawItem("Auto Portrait", Screen.autorotateToPortrait.ToString());
DrawItem("Auto Portrait Upside Down", Screen.autorotateToPortraitUpsideDown.ToString());
#if UNITY_2017_2_OR_NEWER && !UNITY_2017_2_0
DrawItem("Safe Area", Screen.safeArea.ToString());
#endif
#if UNITY_2019_2_OR_NEWER
DrawItem("Cutouts", GetCutoutsString(Screen.cutouts));
#endif
DrawItem("Support Resolutions", GetResolutionsString(Screen.resolutions));
}
GUILayout.EndVertical();

View File

@ -21,17 +21,11 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Processor Count", SystemInfo.processorCount.ToString());
DrawItem("Processor Frequency", Utility.Text.Format("{0} MHz", SystemInfo.processorFrequency));
DrawItem("System Memory Size", Utility.Text.Format("{0} MB", SystemInfo.systemMemorySize));
#if UNITY_5_5_OR_NEWER
DrawItem("Operating System Family", SystemInfo.operatingSystemFamily.ToString());
#endif
DrawItem("Operating System", SystemInfo.operatingSystem);
#if UNITY_5_6_OR_NEWER
DrawItem("Battery Status", SystemInfo.batteryStatus.ToString());
DrawItem("Battery Level", GetBatteryLevelString(SystemInfo.batteryLevel));
#endif
#if UNITY_5_4_OR_NEWER
DrawItem("Supports Audio", SystemInfo.supportsAudio.ToString());
#endif
DrawItem("Supports Location Service", SystemInfo.supportsLocationService.ToString());
DrawItem("Supports Accelerometer", SystemInfo.supportsAccelerometer.ToString());
DrawItem("Supports Gyroscope", SystemInfo.supportsGyroscope.ToString());

View File

@ -19,29 +19,20 @@ namespace AlicizaX.Debugger.Runtime
DrawItem("Time", Time.time.ToString());
DrawItem("Fixed Time", Time.fixedTime.ToString());
DrawItem("Unscaled Time", Time.unscaledTime.ToString());
#if UNITY_5_6_OR_NEWER
DrawItem("Fixed Unscaled Time", Time.fixedUnscaledTime.ToString());
#endif
DrawItem("Delta Time", Time.deltaTime.ToString());
DrawItem("Fixed Delta Time", Time.fixedDeltaTime.ToString());
DrawItem("Unscaled Delta Time", Time.unscaledDeltaTime.ToString());
#if UNITY_5_6_OR_NEWER
DrawItem("Fixed Unscaled Delta Time", Time.fixedUnscaledDeltaTime.ToString());
#endif
DrawItem("Smooth Delta Time", Time.smoothDeltaTime.ToString());
DrawItem("Maximum Delta Time", Time.maximumDeltaTime.ToString());
#if UNITY_5_5_OR_NEWER
DrawItem("Maximum Particle Delta Time", Time.maximumParticleDeltaTime.ToString());
#endif
DrawItem("Frame Count", Time.frameCount.ToString());
DrawItem("Rendered Frame Count", Time.renderedFrameCount.ToString());
DrawItem("Capture Framerate", Time.captureFramerate.ToString());
#if UNITY_2019_2_OR_NEWER
DrawItem("Capture Delta Time", Time.captureDeltaTime.ToString());
#endif
#if UNITY_5_6_OR_NEWER
DrawItem("In Fixed Time Step", Time.inFixedTimeStep.ToString());
#endif
}
GUILayout.EndVertical();
}

View File

@ -12,20 +12,7 @@ namespace AlicizaX.Debugger.Runtime
GUILayout.Label("<b>Web Player Information</b>");
GUILayout.BeginVertical("box");
{
#if !UNITY_2017_2_OR_NEWER
DrawItem("Is Web Player", Application.isWebPlayer.ToString());
#endif
DrawItem("Absolute URL", Application.absoluteURL);
#if !UNITY_2017_2_OR_NEWER
DrawItem("Source Value", Application.srcValue);
#endif
#if !UNITY_2018_2_OR_NEWER
DrawItem("Streamed Bytes", Application.streamedBytes.ToString());
#endif
#if UNITY_5_3 || UNITY_5_4
DrawItem("Web Security Enabled", Application.webSecurityEnabled.ToString());
DrawItem("Web Security Host URL", Application.webSecurityHostUrl.ToString());
#endif
}
GUILayout.EndVertical();
}