Editor utility functions.
scriptCompilationFailed | True if there are any compilation error messages in the log. |
ClearDefaultParentObject | Clears the default parent GameObject from either a specific Scene or the active Scene. |
ClearDirty | Clear target's dirty flag. |
ClearProgressBar | Removes the progress bar. |
CollectDeepHierarchy | Collect all objects in the hierarchy rooted at each of the given objects. |
CollectDependencies | Calculates and returns a list of all assets the assets listed in roots depend on. |
CompressCubemapTexture | Compress a cubemap texture. |
CompressTexture | Compress a texture. |
CopySerialized | Copy all settings of a Unity Object. |
CopySerializedIfDifferent | Copy all settings of a Unity Object to a second Object if they differ. |
CopySerializedManagedFieldsOnly | Copies the serializable fields from one managed object to another. |
CreateGameObjectWithHideFlags | Creates a game object with HideFlags and specified components. |
DisplayCancelableProgressBar | Displays or updates a progress bar that has a cancel button. |
DisplayDialog | This method displays a modal dialog. |
DisplayDialogComplex | Displays a modal dialog with three buttons. |
DisplayPopupMenu | Displays a popup menu. |
DisplayProgressBar | Displays or updates a progress bar. |
FocusProjectWindow | Brings the project window to the front and focuses it. |
FormatBytes | Returns a text for a number of bytes. |
GetDialogOptOutDecision | This method displays a modal dialog that lets the user opt-out of being shown the current dialog box again. |
GetDirtyCount | Returns an integer that indicates the number of times the specified object's serialized properties have changed. |
GetObjectEnabled | Is the object enabled (0 disabled, 1 enabled, -1 has no enabled button). |
InstanceIDToObject | Translates an instance ID to a reference to an object. |
IsDirty | Gets a boolean value that indicates whether the specified object has changed since the last time it was saved. |
IsPersistent | Determines if an object is stored on disk. |
IsRunningUnderCPUEmulation | Gets a boolean value. This value indicates whether your CPU is unable to execute Unity natively and is running an emulated version. |
NaturalCompare | Human-like sorting. |
OpenFilePanel | Displays the "open file" dialog and returns the selected path name. |
OpenFilePanelWithFilters | Displays the "open file" dialog and returns the selected path name. |
OpenFolderPanel | Displays the "open folder" dialog and returns the selected path name. |
OpenPropertyEditor | Open properties editor for an Object. |
RequestScriptReload | The 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. |
SaveFilePanel | Displays the "save file" dialog and returns the selected path name. |
SaveFilePanelInProject | Displays the "save file" dialog in the Assets folder of the project and returns the selected path name. |
SaveFolderPanel | Displays the "save folder" dialog and returns the selected path name. |
SetCameraAnimateMaterials | Sets this camera to allow animation of materials in the Editor. |
SetCameraAnimateMaterialsTime | Sets the global time for this camera to use when rendering. |
SetCustomDiffTool | Set custom diff tool settings. |
SetDefaultParentObject | Sets the default parent object for the active Scene. |
SetDialogOptOutDecision | This method displays a modal dialog that lets the user opt-out of being shown the current dialog box again. |
SetDirty | Marks target object as dirty. |
SetObjectEnabled | Set the enabled state of the object. |
SetSelectedRenderState | Set the Scene View selected display mode for this Renderer. |
UnloadUnusedAssetsImmediate | Unloads assets that are not used. |
UpdateGlobalShaderProperties | Updates the global shader properties to use when rendering. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.