C# Класс PrefabAssetUtility.Editor.PrefabUtils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetComponentsForPrefab() публичный статический Метод

Get the list of Components that the prefab uses
public static GetComponentsForPrefab ( string prefabPath ) : List
prefabPath string The relative path to the prefab
Результат List

GetGUIDsForPrefab() публичный статический Метод

Get the list of GUIDs that the prefab uses
public static GetGUIDsForPrefab ( string prefabPath ) : List
prefabPath string The relative path to the prefab
Результат List

GetPrefabsForGUID() публичный статический Метод

Get the list of prefab paths that reference the given GUID
public static GetPrefabsForGUID ( string GUID ) : List
GUID string GUID to check for
Результат List

GetPrefabsWithComponent() публичный статический Метод

Get the list of prefab paths that reference the given Component
public static GetPrefabsWithComponent ( Type type ) : List
type Type Type to check for
Результат List

GetPrefabsWithComponent() публичный статический Метод

Get the list of prefab paths that reference the given Component
public static GetPrefabsWithComponent ( ) : List
Результат List