Player Settings 是您为即将在 Unity 中构建的最终游戏定义各种参数的地方。其中一些值将用于您打开独立平台游戏时所启动的分辨率对话框。
| accelerometerFrequency | 加速度计更新频率。 | 
| actionOnDotNetUnhandledException | 针对未经处理的 .NET 异常设置崩溃行为。 | 
| advancedLicense | 使用的是否为高级版本? | 
| allowedAutorotateToLandscapeLeft | 是否支持自动旋转到左侧横向模式? | 
| allowedAutorotateToLandscapeRight | 是否支持自动旋转到右侧横向模式? | 
| allowedAutorotateToPortrait | 是否支持自动旋转到纵向模式? | 
| allowedAutorotateToPortraitUpsideDown | 是否支持自动旋转到纵向倒置模式? | 
| allowFullscreenSwitch | 如启用,则允许用户使用特定于操作系统的键盘快捷键在全屏模式和窗口模式之间切换。 | 
| allowUnsafeCode | Allow unsafe C# code to be compiled for predefined assemblies. | 
| aotOptions | 其他 AOT 编译选项。由 AOT 平台共享。 | 
| applicationIdentifier | 当前所选构建目标的应用程序标识符。 | 
| bakeCollisionMeshes | 在播放器构建时预烘焙碰撞网格。 | 
| bundleVersion | iOS 和 Android 平台之间共享的应用程序捆绑包版本。 | 
| captureSingleScreen | 定义全屏游戏是否应使辅助显示变暗。 | 
| colorSpace | 设置当前项目的渲染颜色空间。 | 
| companyName | 您公司的名称。 | 
| cursorHotspot | 默认光标单击位置(以像素为单位),位于光标图像的左上角。 | 
| defaultCursor | 应用程序的默认光标。 | 
| defaultInterfaceOrientation | 移动平台的默认屏幕方向。 | 
| defaultScreenHeight | 独立平台播放器窗口的默认垂直尺寸。 | 
| defaultScreenWidth | 独立平台播放器窗口的默认水平尺寸。 | 
| defaultWebScreenHeight | Web 播放器窗口的默认垂直尺寸。 | 
| defaultWebScreenWidth | Web 播放器窗口的默认水平尺寸。 | 
| enable360StereoCapture | 在当前构建目标上启用 360 度立体捕获支持。 | 
| enableCrashReportAPI | 启用 CrashReport API。 | 
| enableFrameTimingStats | 启用帧计时统计。 | 
| enableInternalProfiler | 启用内部性能分析器。 | 
| enableMetalAPIValidation | 在编辑器中启用 Metal API 验证。 | 
| enableOpenGLProfilerGPURecorders | Enable ProfilerRecorder usage to record GPU timings when rendering with OpenGL. | 
| forceSingleInstance | 将独立平台播放器限制为单个并发运行实例。 | 
| fullScreenMode | 用于定义全屏行为的平台无关性设置。并不是所有平台都支持所有模式。 | 
| gcIncremental | 用于启用或禁用垃圾收集增量模式。 | 
| gpuSkinning | 在支持的平台上启用 GPU 蒙皮。 | 
| graphicsJobMode | 选择要在支持 Native 和 Legacy 图形作业的平台上使用的图形作业模式。 | 
| graphicsJobs | 启用图形作业(多线程渲染)。 | 
| hdrBitDepth | The number of bits in each color channel for swap chain buffers. | 
| insecureHttpOption | Determines if plain text HTTP connections are allowed. | 
| keyaliasPass | 用于为 Android 应用程序签名的密钥的密码。 | 
| keystorePass | 用于与 Android 密钥库交互的密码。 | 
| legacyClampBlendShapeWeights | 定义 SkinnedMeshRenderers 中的 BlendShape 权重范围是否受到钳制。 | 
| logObjCUncaughtExceptions | 是否记录了 ObjC 未捕获的异常? | 
| macRetinaSupport | 针对 macOS 启用 Retina 支持。 | 
| mipStripping | Enable mip stripping for all platforms. | 
| MTRendering | 是否启用多线程渲染? | 
| muteOtherAudioSources | 运行 Unity 应用程序时,停止或允许在后台播放来自其他应用程序的音频。 | 
| openGLRequireES31 | 指定应用程序是否需要 OpenGL ES 3.1 支持。 | 
| openGLRequireES31AEP | 指定应用程序是否需要 OpenGL ES 3.1 AEP 支持。 | 
| openGLRequireES32 | 指定应用程序是否需要 OpenGL ES 3.2 支持。 | 
| preserveFramebufferAlpha | 启用后,将在帧缓冲区中保存 Alpha 值以支持渲染 Android 上的原生 UI。 | 
| productName | 商品名称。 | 
| resetResolutionOnWindowResize | Indicates whether to reset the application's screen resolution when the native window size changes. | 
| resizableWindow | 在独立平台播放器构建中使用可调节大小的窗口。 | 
| runInBackground | 如已启用,游戏将在失去焦点后继续运行。 | 
| spriteBatchVertexThreshold | Specifies the max vertex limit for Sprite batching. | 
| statusBarHidden | 返回关于状态栏是否应隐藏的信息。仅 iOS 支持;在 Android 中,状态栏一直处于隐藏状态。 | 
| stereoRenderingPath | 有效立体渲染路径 | 
| strictShaderVariantMatching | Enable strict shader variant matching in the player. | 
| stripEngineCode | 从构建中删除所有未使用的引擎代码(仅适限 IL2CPP)。 | 
| stripUnusedMeshComponents | 是否应从游戏构建中排除未使用的 Mesh 组件? | 
| suppressCommonWarnings | Suppresses common C# warnings. | 
| use32BitDisplayBuffer | 使用 32 位显示缓冲区。 | 
| useAnimatedAutorotation | 更改设备方向时,允许操作系统自动旋转屏幕。 | 
| useFlipModelSwapchain | Use DXGI flip model swap chain for D3D11. | 
| useHDRDisplay | 将显示切换到 HDR 模式(如可用)。 | 
| useMacAppStoreValidation | 启用 Mac App Store 的收据验证。 | 
| usePlayerLog | 向日志文件写入调试信息。 | 
| virtualRealitySplashScreen | 特定于虚拟现实的启动画面。 | 
| visibleInBackground | On Windows, shows the application in the background if the Fullscreen Windowed mode is used. | 
| vulkanEnableLateAcquireNextImage | Delays acquiring the swapchain image until after the frame is rendered. | 
| vulkanEnablePreTransform | Applies the display rotation during rendering. | 
| vulkanEnableSetSRGBWrite | 在 Vulkan 渲染器中启用 Graphics.SetSRGBWrite()。 | 
| vulkanNumSwapchainBuffers | 设置将与 Vulkan 渲染器结合使用的交换链缓冲区的数量 | 
| windowsGamepadBackendHint | Specifies the desired Windows API to be used for input. | 
| GetAdditionalCompilerArguments | Gets an array of additional compiler arguments set for a specific NamedBuildTarget. | 
| GetAdditionalCompilerArgumentsForGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.GetAdditionalCompilerArguments instead. | 
| GetAdditionalIl2CppArgs | Obtain the additional arguments passed to the IL2CPP compiler during the player build process. | 
| GetApiCompatibilityLevel | Gets .NET API compatibility level for specified build target. | 
| GetApplicationIdentifier | 获取指定平台的应用程序标识符。 | 
| GetArchitecture | Gets the architecture for the given build target. | 
| GetDefaultScriptingBackend | Returns the default ScriptingImplementation for the build target you select. | 
| GetDefaultShaderChunkCount | Gets the default limit on the number of shader variant chunks Unity loads and keeps in memory. | 
| GetDefaultShaderChunkSizeInMB | Gets the default size for compressed shader variant chunks. | 
| GetGraphicsAPIs | 获取构建平台上使用的图形 API。 | 
| GetIcons | Returns the list of assigned icons for the specified build target. | 
| GetIconsForTargetGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.GetIcons instead. | 
| GetIconSizes | 返回指定平台的图标大小的列表。 | 
| GetIconSizesForTargetGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.GetIconSizes instead. | 
| GetIl2CppCodeGeneration | Gets the value of code generation option for IL2CPP. | 
| GetIl2CppCompilerConfiguration | Gets compiler configuration used when compiling generated C++ code for the build target you specify. | 
| GetManagedStrippingLevel | Gets the managed code stripping level set for the build target you select | 
| GetMobileMTRendering | 检查是否已启用移动平台的多线程渲染选项。 | 
| GetNormalMapEncoding | Gets the NormalMapEncoding for the build target you select. | 
| GetOverrideShaderChunkSettingsForPlatform | If the value is true, settings for the buildTarget override the default settings. | 
| GetPlatformIcons | Gets the list of available icon slots for the specified build target and kind. | 
| GetPreloadedAssets | 返回将在播放器启动时加载的资源,并保持活动状态直到播放器终止。 | 
| GetScriptingBackend | Gets the scripting framework for the build target you select. | 
| GetScriptingDefineSymbols | Gets the user-specified symbols for script compilation for the build target you select. | 
| GetScriptingDefineSymbolsForGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.GetScriptingDefineSymbols instead. | 
| GetShaderChunkCountForPlatform | Gets the default limit on the number of shader variant chunks Unity loads and keeps in memory for the build target. | 
| GetShaderChunkSizeInMBForPlatform | Gets the default size for compressed shader variant chunks for the build target. | 
| GetShaderPrecisionModel | Gets the active shader precision model. | 
| GetStackTraceLogType | Gets stack trace logging options. | 
| GetSupportedIconKinds | Retrieves all icon kinds that the specified build target supports | 
| GetSupportedIconKindsForPlatform | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.GetSupportedIconKinds instead. | 
| GetTemplateCustomValue | Returns a value of a custom template variable. | 
| GetUseDefaultGraphicsAPIs | 构建平台是否使用自动图形 API 选项? | 
| GetVirtualTexturingSupportEnabled | Is virtual texturing enabled. | 
| SetAdditionalCompilerArguments | Sets additional compiler arguments for a build target. | 
| SetAdditionalCompilerArgumentsForGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.SetAdditionalCompilerArguments instead. | 
| SetAdditionalIl2CppArgs | Set additional arguments passed to the IL2CPP compiler during the build process. | 
| SetApiCompatibilityLevel | Sets .NET API compatibility level for specified build target. | 
| SetApplicationIdentifier | 为指定平台设置应用程序标识符。 | 
| SetArchitecture | Sets the architecture for the given build target. | 
| SetDefaultShaderChunkCount | Sets the default limit on the number of shader variant chunks Unity loads and keeps in memory. | 
| SetDefaultShaderChunkSizeInMB | Sets the default size for compressed shader variant chunks. | 
| SetGraphicsAPIs | 设置构建平台上使用的图形 API。 | 
| SetIcons | Assigns a list of icons for the specified platform. | 
| SetIconsForTargetGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.SetIcons instead. | 
| SetIl2CppCodeGeneration | Sets the code generation option for IL2CPP for the specified build target. | 
| SetIl2CppCompilerConfiguration | Sets compiler configuration used when compiling generated C++ code for a particular build target. | 
| SetManagedStrippingLevel | Sets the managed code stripping level for specified build target. | 
| SetMobileMTRendering | 启用或禁用移动平台的多线程渲染选项。 | 
| SetNormalMapEncoding | Sets the normal map encoding for the given build target. | 
| SetOverrideShaderChunkSettingsForPlatform | Enable this to override the default shader variant chunk settings. | 
| SetPlatformIcons | 为指定平台和图标种类分配图标列表。 | 
| SetPreloadedAssets | 分配将在播放器启动时加载的资源,并保持活动状态直到播放器终止。 | 
| SetScriptingBackend | Sets the scripting framework for a given build target. | 
| SetScriptingDefineSymbols | Set user-specified symbols for script compilation for the given build target. | 
| SetScriptingDefineSymbolsForGroup | BuildTargetGroup is marked for deprecation in the future. Use PlayerSettings.SetScriptingDefineSymbols instead. | 
| SetShaderChunkCountForPlatform | Sets the default limit on the number of shader variant chunks Unity loads and keeps in memory on the build target. | 
| SetShaderChunkSizeInMBForPlatform | Sets the default size for compressed shader variant chunks on the build target. | 
| SetShaderPrecisionModel | Sets the shader precision model. | 
| SetStackTraceLogType | 设置堆栈跟踪日志记录选项。 注意:调用该函数将显式调用 Application.SetStackTraceLogType。 | 
| SetTemplateCustomValue | Sets a value of a custom template variable. | 
| SetUseDefaultGraphicsAPIs | 构建平台是否应使用自动图形 API 选项? | 
| SetVirtualTexturingSupportEnabled | Enable virtual texturing. | 
| GetInstanceID | Gets the instance ID of the object. | 
| ToString | 返回对象的名称。 | 
| Destroy | 移除 GameObject、组件或资源。 | 
| DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 | 
| DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 | 
| FindAnyObjectByType | Retrieves any active loaded object of Type type. | 
| FindFirstObjectByType | Retrieves the first active loaded object of Type type. | 
| FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 | 
| FindObjectsByType | Retrieves a list of all loaded objects of Type type. | 
| FindObjectsOfType | Gets a list of all loaded objects of Type type. | 
| Instantiate | 克隆 original 对象并返回克隆对象。 | 
| bool | 该对象是否存在? | 
| operator != | 比较两个对象是否引用不同的对象。 | 
| operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |