C# Class FullInspector.Internal.fiEditorUtility

Mostra file Open project: jacobdufault/fullinspector

Public Properties

Property Type Description
RepaintableEditorWindows List
ShouldInspectorRedraw fiStackEnabled

Public Methods

Method Description
GetAllAssetsOfType ( Type type ) : List

Find all assets of a given type, regardless of location.

Please note that this method can return UnityObject instances that have been deleted.

GetAllPrefabsOfType ( Type type ) : List

Find all prefabs of a given type, regardless of location.

Please note that this method can return UnityObject instances that have been deleted.

GetAllScenes ( ) : List

Returns the paths of all .scene files in the Unity project.

HasMonoScript ( object obj ) : bool

Returns true if the given obj has a MonoScript associated with it.

OpenScene ( string scene ) : void
RemoveMissingScripts ( GameObject gameObject ) : void
RepaintAllEditors ( ) : void

This will sent a repaint request to every active editor.

TryGetMonoScript ( object obj, MonoScript &script ) : bool

Attempts to fetch a MonoScript that is associated with the given obj.

Method Details

GetAllAssetsOfType() public static method

Find all assets of a given type, regardless of location.
Please note that this method can return UnityObject instances that have been deleted.
public static GetAllAssetsOfType ( Type type ) : List
type System.Type /// The (ScriptableObject derived) type of object to fetch ///
return List

GetAllPrefabsOfType() public static method

Find all prefabs of a given type, regardless of location.
Please note that this method can return UnityObject instances that have been deleted.
public static GetAllPrefabsOfType ( Type type ) : List
type System.Type The type of object to fetch
return List

GetAllScenes() public static method

Returns the paths of all .scene files in the Unity project.
public static GetAllScenes ( ) : List
return List

HasMonoScript() public static method

Returns true if the given obj has a MonoScript associated with it.
public static HasMonoScript ( object obj ) : bool
obj object
return bool

OpenScene() public static method

public static OpenScene ( string scene ) : void
scene string
return void

RemoveMissingScripts() public static method

public static RemoveMissingScripts ( GameObject gameObject ) : void
gameObject UnityEngine.GameObject
return void

RepaintAllEditors() public static method

This will sent a repaint request to every active editor.
public static RepaintAllEditors ( ) : void
return void

TryGetMonoScript() public static method

Attempts to fetch a MonoScript that is associated with the given obj.
public static TryGetMonoScript ( object obj, MonoScript &script ) : bool
obj object The object to fetch the script for.
script UnityEditor.MonoScript The script, if found.
return bool

Property Details

RepaintableEditorWindows public_oe static_oe property

Add to this list if the editor should be repainted upon a general repaint request.
public static List RepaintableEditorWindows
return List

ShouldInspectorRedraw public_oe static_oe property

If enabled, then the inspector should be constantly redrawn. This is used to work around some rendering issues within Unity.
public static fiStackEnabled ShouldInspectorRedraw
return fiStackEnabled