C# Class PrefabAssetUtility.Editor.PrefabUtils

Mostra file Open project: savik-games/Cave Class Usage Examples

Public Methods

Method Description
GetComponentsForPrefab ( string prefabPath ) : List

Get the list of Components that the prefab uses

GetGUIDsForPrefab ( string prefabPath ) : List

Get the list of GUIDs that the prefab uses

GetPrefabsForGUID ( string GUID ) : List

Get the list of prefab paths that reference the given GUID

GetPrefabsWithComponent ( Type type ) : List

Get the list of prefab paths that reference the given Component

GetPrefabsWithComponent ( ) : List

Get the list of prefab paths that reference the given Component

Private Methods

Method Description
AddToLists ( string asset, HashSet Components, Dictionary &_aToB, Dictionary &_bToA ) : void
CompilationPipelineOnCompilationStarted ( object obj ) : void
EditorApplicationOnQuitting ( ) : void
GetAllPrefabs ( ) : List
Init ( ) : void
IsCacheAvailable ( ) : bool
IsCacheReady ( ) : bool
LoadCache ( ) : void
PrefabInstanceUpdated ( GameObject instance ) : void
ProcessCacheForAsset ( string asset ) : void
RefreshPrefabCache ( ) : void
SaveCache ( ) : void

Method Details

GetComponentsForPrefab() public static method

Get the list of Components that the prefab uses
public static GetComponentsForPrefab ( string prefabPath ) : List
prefabPath string The relative path to the prefab
return List

GetGUIDsForPrefab() public static method

Get the list of GUIDs that the prefab uses
public static GetGUIDsForPrefab ( string prefabPath ) : List
prefabPath string The relative path to the prefab
return List

GetPrefabsForGUID() public static method

Get the list of prefab paths that reference the given GUID
public static GetPrefabsForGUID ( string GUID ) : List
GUID string GUID to check for
return List

GetPrefabsWithComponent() public static method

Get the list of prefab paths that reference the given Component
public static GetPrefabsWithComponent ( Type type ) : List
type Type Type to check for
return List

GetPrefabsWithComponent() public static method

Get the list of prefab paths that reference the given Component
public static GetPrefabsWithComponent ( ) : List
return List