Class Extensions
- Namespace
- VAMP
- Assembly
- VAMP.dll
public static class Extensions
- Inheritance
-
Extensions
- Inherited Members
Methods
LookupName(PrefabGUID)
Converts a PrefabGUID to its corresponding name string from the game's prefab collection.
public static string LookupName(this PrefabGUID prefabGuid)
Parameters
prefabGuid
PrefabGUIDThe PrefabGUID to look up
Returns
- string
A string containing the prefab name and GUID, or "GUID Not Found" if the prefab doesn't exist
Examples
string itemName = someGuid.LookupName(); // Returns "Sword 12345" or "GUID Not Found"
Remarks
Uses the PrefabCollectionSystem to retrieve human-readable names for game objects. The returned string includes both the name and the GUID for complete identification.