Version: 2021.3

EditorSettings

class in UnityEditor

/

继承自:Object

切换到手册

描述

User settings for Unity Editor.

Use EditorSettings to apply Editor Project Settings to your Unity Project. You can control settings such as version control, streaming settings, and Asset serialization.

See Also: Editor Project Settings

静态变量

assetNamingUsesSpaceControls whether to insert a space before a number in duplicated Asset names.
assetPipelineMode选择 Assetpipeline 模式。
asyncShaderCompilation在 Game 视图和 Scene 视图中启用异步着色器编译。
cacheServerEnableAuthToggle whether to enable authentication to cache server.
cacheServerEnableDownload切换是否启用从缓存服务器下载的功能。
cacheServerEnableTlsToggle whether to enable TLS encryption to cache server.
cacheServerEnableUpload切换是否启用从缓存服务器上传的功能。
cacheServerEndpoint缓存服务器终端 IP 地址
cacheServerMode选择缓存服务器模式
cacheServerNamespacePrefix设置要用于缓存服务器的命名空间前缀。
cacheServerValidationModeSelect Accelerator server validation mode.
cachingShaderPreprocessorEnables the Caching Shader Preprocessor.
enableCookiesInLightmapperDetermines whether cookies should be evaluated by the Progressive Lightmapper during Global Illumination calculations.
enableTextureStreamingInEditMode在编辑模式下启用纹理 Mipmap 串流系统。
enableTextureStreamingInPlayMode在播放模式下启用纹理 Mipmap 串流系统。
enterPlayModeOptions在 Unity 编辑器中确定进入运行模式选项的状态。
enterPlayModeOptionsEnabledDetermines whether the Enter Play Mode Options are enabled in the Unity Editor or not.
gameObjectNamingDigitsIndicates the amount of digits to use for the numbers in a duplicated GameoObject's name.
gameObjectNamingSchemeIndicates which naming scheme to use for duplicated GameObjects.
prefabModeAllowAutoSaveAllow Auto Save in Prefab Mode for this project.
prefabRegularEnvironment允许指定一个场景用作预制件的编辑环境。
prefabUIEnvironment允许指定一个场景用作 UI 预制件的编辑环境。
projectGenerationRootNamespace控制将哪个根命名空间写入 Unity 生成的 c# .csproj 项目。
projectGenerationUserExtensions控制将包含在 Unity 生成的 c# .csproj 项目中的文件扩展名列表。
refreshImportModeControls the Editor's use of parallel processes when it imports assets during an asset database refresh, for this project.
serializeInlineMappingsOnOneLineForces Unity to write references and other inline mappings on one line, to help reduce version control noise.
spritePackerPaddingPower值为 2 的幂数,用于为打包到图集 (Legacy Sprite Packer) 的精灵添加边界(填充)。
unityRemoteCompression获取或设置用于 Unity Remote 屏幕流的压缩方法。
unityRemoteDevice获取或设置用于 Unity Remote 功能的设备 ID。
unityRemoteJoystickSource获取或设置在连接 Unity Remote 时编辑器中使用的操纵杆源。
unityRemoteResolution获取或设置用于 Unity Remote 屏幕流的分辨率。
useLegacyProbeSampleCount通过渐进光照贴图 (Progressive Lightmapper) 为烘焙光照探针启用旧版固定样本数量。

继承的成员

变量

hideFlags该对象应该隐藏、随场景一起保存还是由用户修改?
name对象的名称。

公共函数

GetInstanceIDGets the instance ID of the object.
ToString返回对象的名称。

静态函数

Destroy移除 GameObject、组件或资源。
DestroyImmediate立即销毁对象 /obj/。强烈建议您改用 Destroy。
DontDestroyOnLoad在加载新的 Scene 时,请勿销毁 Object。
FindObjectOfType返回第一个类型为 type 的已加载的激活对象。
FindObjectsOfTypeGets a list of all loaded objects of Type type.
Instantiate克隆 original 对象并返回克隆对象。

运算符

bool该对象是否存在?
operator !=比较两个对象是否引用不同的对象。
operator ==比较两个对象引用,判断它们是否引用同一个对象。