Class InternalEditorUtility
Inheritance
InternalEditorUtility
Assembly: UnityEditor.dll
Syntax
public class InternalEditorUtility
Properties
defaultScreenHeight
Declaration
public static float defaultScreenHeight { get; }
Property Value
defaultScreenWidth
Declaration
public static float defaultScreenWidth { get; }
Property Value
defaultWebScreenHeight
Declaration
public static float defaultWebScreenHeight { get; }
Property Value
defaultWebScreenWidth
Declaration
public static float defaultWebScreenWidth { get; }
Property Value
expandedProjectWindowItems
Declaration
public static int[] expandedProjectWindowItems { get; set; }
Property Value
inBatchMode
Declaration
public static bool inBatchMode { get; }
Property Value
isApplicationActive
Declaration
public static bool isApplicationActive { get; }
Property Value
isHumanControllingUs
Declaration
public static bool isHumanControllingUs { get; }
Property Value
layers
Declaration
public static string[] layers { get; }
Property Value
remoteScreenHeight
Declaration
public static float remoteScreenHeight { get; }
Property Value
remoteScreenWidth
Declaration
public static float remoteScreenWidth { get; }
Property Value
Declaration
public static string[] tags { get; }
Property Value
unityPreferencesFolder
Declaration
public static string unityPreferencesFolder { get; }
Property Value
Methods
AddTag(String)
Declaration
public static void AddTag(string tag)
Parameters
Type |
Name |
Description |
String |
tag |
|
BuildCanBeAppended(BuildTarget, String)
Declaration
public static CanAppendBuild BuildCanBeAppended(BuildTarget target, string location)
Parameters
Returns
BumpMapSettingsFixingWindowReportResult(Int32)
Declaration
public static void BumpMapSettingsFixingWindowReportResult(int result)
Parameters
Type |
Name |
Description |
Int32 |
result |
|
BumpMapTextureNeedsFixingInternal(Material, String, Boolean)
Declaration
public static bool BumpMapTextureNeedsFixingInternal(Material material, string propName, bool flaggedAsNormal)
Parameters
Returns
CalculateHashForObjectsAndDependencies(Object[])
Declaration
public static string CalculateHashForObjectsAndDependencies(Object[] objects)
Parameters
Type |
Name |
Description |
Object[] |
objects |
|
Returns
CalculateSelectionBounds(Boolean, Boolean)
Declaration
public static Bounds CalculateSelectionBounds(bool usePivotOnlyForParticles, bool onlyUseActiveSelection)
Parameters
Type |
Name |
Description |
Boolean |
usePivotOnlyForParticles |
|
Boolean |
onlyUseActiveSelection |
|
Returns
CanConnectToCacheServer()
Declaration
public static bool CanConnectToCacheServer()
Returns
|
Improve this Doc
View Source
ConcatenatedLayersMaskToLayerMask(Int32)
Declaration
public static LayerMask ConcatenatedLayersMaskToLayerMask(int concatenatedLayersMask)
Parameters
Type |
Name |
Description |
Int32 |
concatenatedLayersMask |
|
Returns
|
Improve this Doc
View Source
CountToString(UInt64)
Declaration
public static string CountToString(ulong count)
Parameters
Type |
Name |
Description |
UInt64 |
count |
|
Returns
CurrentThreadIsMainThread()
Declaration
public static bool CurrentThreadIsMainThread()
Returns
DetectDotNetDll(String)
Declaration
public static DllType DetectDotNetDll(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Declaration
public static int DetermineDepthOrder(Transform lhs, Transform rhs)
Parameters
Returns
EnsureSceneHasBeenSaved(String)
Declaration
[Obsolete("use EditorSceneManager.EnsureUntitledSceneHasBeenSaved")]
public static bool EnsureSceneHasBeenSaved(string operation)
Parameters
Type |
Name |
Description |
String |
operation |
|
Returns
ExecuteCommandOnKeyWindow(String)
Declaration
public static void ExecuteCommandOnKeyWindow(string commandName)
Parameters
Type |
Name |
Description |
String |
commandName |
|
|
Improve this Doc
View Source
FindIconForFile(String)
Declaration
public static Texture2D FindIconForFile(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
FixCacheServerIntegrityErrors()
Declaration
public static ulong FixCacheServerIntegrityErrors()
Returns
FixNormalmapTextureInternal(Material, String)
Declaration
public static void FixNormalmapTextureInternal(Material material, string propName)
Parameters
GetAssetsFolder()
Declaration
public static string GetAssetsFolder()
Returns
GetAuthToken()
Declaration
public static string GetAuthToken()
Returns
Declaration
public static string[] GetAvailableDiffTools()
Returns
GetBoundsOfDesktopAtPoint(Vector2)
Declaration
public static Rect GetBoundsOfDesktopAtPoint(Vector2 pos)
Parameters
Returns
GetCrashReportFolder()
Declaration
public static string GetCrashReportFolder()
Returns
|
Improve this Doc
View Source
GetDisplayStringOfInvalidCharsOfFileName(String)
Declaration
public static string GetDisplayStringOfInvalidCharsOfFileName(string filename)
Parameters
Type |
Name |
Description |
String |
filename |
|
Returns
GetEditorAssemblyPath()
Declaration
public static string GetEditorAssemblyPath()
Returns
GetEditorFolder()
Declaration
public static string GetEditorFolder()
Returns
|
Improve this Doc
View Source
GetEditorSettingsList(String, Int32)
Declaration
public static string[] GetEditorSettingsList(string prefix, int count)
Parameters
Returns
GetEngineAssemblyPath()
Declaration
public static string GetEngineAssemblyPath()
Returns
GetEngineCoreModuleAssemblyPath()
Declaration
public static string GetEngineCoreModuleAssemblyPath()
Returns
GetFullUnityVersion()
Declaration
public static string GetFullUnityVersion()
Returns
GetGameObjectInstanceIDFromComponent(Int32)
Declaration
public static int GetGameObjectInstanceIDFromComponent(int instanceID)
Parameters
Type |
Name |
Description |
Int32 |
instanceID |
|
Returns
GetGpuDevices()
Declaration
public static string[] GetGpuDevices()
Returns
|
Improve this Doc
View Source
GetIconForFile(String)
Declaration
public static Texture2D GetIconForFile(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
GetIsInspectorExpanded(Object)
Declaration
public static bool GetIsInspectorExpanded(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
GetLayerName(Int32)
Declaration
public static string GetLayerName(int layer)
Parameters
Type |
Name |
Description |
Int32 |
layer |
|
Returns
GetLicenseFlags()
Declaration
public static int[] GetLicenseFlags()
Returns
GetLicenseInfo()
Declaration
public static string GetLicenseInfo()
Returns
GetLoadedObjectFromInstanceID(Int32)
Declaration
public static Object GetLoadedObjectFromInstanceID(int instanceID)
Parameters
Type |
Name |
Description |
Int32 |
instanceID |
|
Returns
|
Improve this Doc
View Source
GetNewSelection(Int32, List<Int32>, List<Int32>, Int32, Boolean, Boolean, Boolean)
Declaration
public static List<int> GetNewSelection(int clickedInstanceID, List<int> allInstanceIDs, List<int> selectedInstanceIDs, int lastClickedInstanceID, bool keepMultiSelection, bool useShiftAsActionKey, bool allowMultiSelection)
Parameters
Returns
Declaration
public static string GetNoDiffToolsDetectedMessage()
Returns
GetObjectFromInstanceID(Int32)
Declaration
public static Object GetObjectFromInstanceID(int instanceID)
Parameters
Type |
Name |
Description |
Int32 |
instanceID |
|
Returns
|
Improve this Doc
View Source
GetSceneViewCameras()
Declaration
public static Camera[] GetSceneViewCameras()
Returns
GetSpriteOuterUV(Sprite, Boolean)
Declaration
public static Vector4 GetSpriteOuterUV(Sprite sprite, bool getAtlasData)
Parameters
Returns
GetTypeWithoutLoadingObject(Int32)
Declaration
public static Type GetTypeWithoutLoadingObject(int instanceID)
Parameters
Type |
Name |
Description |
Int32 |
instanceID |
|
Returns
GetUnityBuildBranch()
Declaration
public static string GetUnityBuildBranch()
Returns
GetUnityCopyright()
Declaration
public static string GetUnityCopyright()
Returns
GetUnityRevision()
Declaration
public static int GetUnityRevision()
Returns
|
Improve this Doc
View Source
GetUnityVersion()
Declaration
public static Version GetUnityVersion()
Returns
GetUnityVersionDate()
Declaration
public static int GetUnityVersionDate()
Returns
GetUnityVersionDigits()
Declaration
public static string GetUnityVersionDigits()
Returns
HasAdvancedLicenseOnBuildTarget(BuildTarget)
Declaration
public static bool HasAdvancedLicenseOnBuildTarget(BuildTarget target)
Parameters
Returns
HasEduLicense()
Declaration
public static bool HasEduLicense()
Returns
HasFreeLicense()
Declaration
public static bool HasFreeLicense()
Returns
HasFullscreenCamera()
Declaration
public static bool HasFullscreenCamera()
Returns
HasPro()
Declaration
public static bool HasPro()
Returns
HasTeamLicense()
Declaration
public static bool HasTeamLicense()
Returns
Declaration
public static DragAndDropVisualMode HierarchyWindowDrag(HierarchyProperty property, InternalEditorUtility.HierarchyDropMode dropMode, Transform parentForDraggedObjects, bool perform)
Parameters
Returns
InstantiateMaterialsInEditMode(Renderer)
Declaration
public static Material[] InstantiateMaterialsInEditMode(Renderer renderer)
Parameters
Returns
|
Improve this Doc
View Source
IsDotNet4Dll(String)
Declaration
public static bool IsDotNet4Dll(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
IsGpuDeviceSelectionSupported()
Declaration
public static bool IsGpuDeviceSelectionSupported()
Returns
IsInEditorFolder(String)
Declaration
public static bool IsInEditorFolder(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
Declaration
public static bool IsMobilePlatform(BuildTarget target)
Parameters
Returns
IsUnityBeta()
Declaration
public static bool IsUnityBeta()
Returns
|
Improve this Doc
View Source
IsValidFileName(String)
Declaration
public static bool IsValidFileName(string filename)
Parameters
Type |
Name |
Description |
String |
filename |
|
Returns
|
Improve this Doc
View Source
LayerMaskToConcatenatedLayersMask(LayerMask)
Declaration
public static int LayerMaskToConcatenatedLayersMask(LayerMask mask)
Parameters
Returns
|
Improve this Doc
View Source
LoadAssemblyWrapper(String, String)
Declaration
public static Assembly LoadAssemblyWrapper(string dllName, string dllLocation)
Parameters
Returns
LoadDefaultLayout()
Declaration
public static void LoadDefaultLayout()
LoadSerializedFileAndForget(String)
Declaration
public static Object[] LoadSerializedFileAndForget(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Returns
OnGameViewFocus(Boolean)
Declaration
public static void OnGameViewFocus(bool focus)
Parameters
Type |
Name |
Description |
Boolean |
focus |
|
OpenEditorConsole()
Declaration
public static void OpenEditorConsole()
OpenFileAtLineExternal(String, Int32)
Declaration
public static bool OpenFileAtLineExternal(string filename, int line)
Parameters
Returns
OpenPlayerConsole()
Declaration
public static void OpenPlayerConsole()
PassAndReturnColor32(Color32)
Declaration
public static Color32 PassAndReturnColor32(Color32 c)
Parameters
Returns
PassAndReturnVector2(Vector2)
Declaration
public static Vector2 PassAndReturnVector2(Vector2 v)
Parameters
Returns
ProjectWindowDrag(HierarchyProperty, Boolean)
Declaration
public static DragAndDropVisualMode ProjectWindowDrag(HierarchyProperty property, bool perform)
Parameters
Returns
ReadScreenPixel(Vector2, Int32, Int32)
Declaration
public static Color[] ReadScreenPixel(Vector2 pixelPos, int sizex, int sizey)
Parameters
Returns
ReadScreenPixelUnderCursor(Vector2, Int32, Int32)
Declaration
public static Color[] ReadScreenPixelUnderCursor(Vector2 cursorPosHint, int sizex, int sizey)
Parameters
Returns
Declaration
public static void ReloadWindowLayoutMenu()
RemoveCustomLighting()
Declaration
public static void RemoveCustomLighting()
|
Improve this Doc
View Source
RemoveInvalidCharsFromFileName(String, Boolean)
Declaration
public static string RemoveInvalidCharsFromFileName(string filename, bool logIfInvalidChars)
Parameters
Returns
RemoveTag(String)
Declaration
public static void RemoveTag(string tag)
Parameters
Type |
Name |
Description |
String |
tag |
|
RepaintAllViews()
Declaration
public static void RepaintAllViews()
RequestScriptReload()
Declaration
public static void RequestScriptReload()
ResetCursor()
Declaration
public static void ResetCursor()
RevertFactoryLayoutSettings(Boolean)
Declaration
public static void RevertFactoryLayoutSettings(bool quitOnCancel)
Parameters
Type |
Name |
Description |
Boolean |
quitOnCancel |
|
SaveCursorToFile(String, Texture2D, Vector2)
Declaration
public static bool SaveCursorToFile(string path, Texture2D image, Vector2 hotSpot)
Parameters
Returns
|
Improve this Doc
View Source
SaveEditorSettingsList(String, String[], Int32)
Declaration
public static void SaveEditorSettingsList(string prefix, string[] aList, int count)
Parameters
|
Improve this Doc
View Source
SaveToSerializedFileAndForget(Object[], String, Boolean)
Declaration
public static void SaveToSerializedFileAndForget(Object[] obj, string path, bool allowTextSerialization)
Parameters
Declaration
public static DragAndDropVisualMode SceneViewDrag(Object dropUpon, Vector3 worldPosition, Vector2 viewportPosition, Transform parentForDraggedObjects, bool perform)
Parameters
Returns
|
Improve this Doc
View Source
SetCustomLighting(Light[], Color)
Declaration
public static void SetCustomLighting(Light[] lights, Color ambient)
Parameters
Type |
Name |
Description |
Light[] |
lights |
|
Color |
ambient |
|
SetCustomLightingInternal(Light[], Color)
Declaration
public static void SetCustomLightingInternal(Light[] lights, Color ambient)
Parameters
Type |
Name |
Description |
Light[] |
lights |
|
Color |
ambient |
|
SetGpuDeviceAndRecreateGraphics(Int32, String)
Declaration
public static void SetGpuDeviceAndRecreateGraphics(int index, string name)
Parameters
SetIsInspectorExpanded(Object, Boolean)
Declaration
public static void SetIsInspectorExpanded(Object obj, bool isExpanded)
Parameters
Declaration
public static void SetRectTransformTemporaryRect(RectTransform rectTransform, Rect rect)
Parameters
Declaration
[Obsolete("SetupShaderMenu is obsolete. You can get list of available shaders with ShaderUtil.GetAllShaderInfos", false)]
public static void SetupShaderMenu(Material material)
Parameters
|
Improve this Doc
View Source
ShowGameView()
Declaration
public static void ShowGameView()
ShowPackageManagerWindow()
Declaration
public static void ShowPackageManagerWindow()
SwitchSkinAndRepaintAllViews()
Declaration
public static void SwitchSkinAndRepaintAllViews()
|
Improve this Doc
View Source
TextAreaForDocBrowser(Rect, String, GUIStyle)
Declaration
public static string TextAreaForDocBrowser(Rect position, string text, GUIStyle style)
Parameters
Returns
|
Improve this Doc
View Source
TextifyEvent(Event)
Declaration
public static string TextifyEvent(Event evt)
Parameters
Type |
Name |
Description |
Event |
evt |
|
Returns
Declaration
public static Bounds TransformBounds(Bounds b, Transform t)
Parameters
Returns
VerifyCacheServerIntegrity()
Declaration
public static ulong VerifyCacheServerIntegrity()
Returns
Extension Methods