EditorUtility

class in UnityEditor

Cambiar al Manual

Descripción

Editor utility functions.

Variables Estáticas

scriptCompilationFailedTrue if there are any compilation error messages in the log.

Funciones Estáticas

ClearDirtyClear target's dirty flag.
ClearProgressBarElimina la barra de progreso.
CollectDeepHierarchyCollect all objects in the hierarchy rooted at each of the given objects.
CollectDependenciesCalculates and returns a list of all assets the assets listed in roots depend on.
CompressCubemapTextureCompress a cubemap texture.
CompressTextureComprime una textura.
CopySerializedCopy all settings of a Unity Object.
CopySerializedIfDifferentCopy all settings of a Unity Object to a second Object if they differ.
CopySerializedManagedFieldsOnlyCopies the serializable fields from one managed object to another.
CreateGameObjectWithHideFlagsCreates a game object with HideFlags and specified components.
DisplayCancelableProgressBarDisplays or updates a progress bar that has a cancel button.
DisplayDialogThis method displays a modal dialog.
DisplayDialogComplexMuestra un diálogo modal con tres botones.
DisplayPopupMenuDisplays a popup menu.
DisplayProgressBarMuestra o actualiza una barra de progreso.
FocusProjectWindowBrings the project window to the front and focuses it.
FormatBytesReturns a text for a number of bytes.
GetDialogOptOutDecisionThis method displays a modal dialog that lets the user opt-out of being shown the current dialog box again.
GetDirtyCountReturns an integer that indicates the number of times the specified object's serialized properties have changed.
GetObjectEnabledIs the object enabled (0 disabled, 1 enabled, -1 has no enabled button).
InstanceIDToObjectTranslates an instance ID to a reference to an object.
IsDirtyGets a boolean value that indicates whether the specified object has changed since the last time it was saved.
IsPersistentDetermines if an object is stored on disk.
NaturalCompareHuman-like sorting.
OpenFilePanelDisplays the "open file" dialog and returns the selected path name.
OpenFilePanelWithFiltersDisplays the "open file" dialog and returns the selected path name.
OpenFolderPanelDisplays the "open folder" dialog and returns the selected path name.
RequestScriptReloadThe Unity Editor reloads script assemblies asynchronously on the next frame. This resets the state of all the scripts, but Unity does not compile any code that has changed since the previous compilation.
SaveFilePanelDisplays the "save file" dialog and returns the selected path name.
SaveFilePanelInProjectDisplays the "save file" dialog in the Assets folder of the project and returns the selected path name.
SaveFolderPanelDisplays the "save folder" dialog and returns the selected path name.
SetCameraAnimateMaterialsSets this camera to allow animation of materials in the Editor.
SetCameraAnimateMaterialsTimeSets the global time for this camera to use when rendering.
SetDialogOptOutDecisionThis method displays a modal dialog that lets the user opt-out of being shown the current dialog box again.
SetDirtyMarks target object as dirty. (Only suitable for non-scene objects).
SetObjectEnabledSet the enabled state of the object.
SetSelectedRenderStateSet the Scene View selected display mode for this Renderer.
UnloadUnusedAssetsImmediateDescargar assets que no se usan.
UpdateGlobalShaderPropertiesUpdates the global shader properties to use when rendering.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961