Class PrefabGuidExtensions
- Namespace
- RisingV.Shared.Extensions
- Assembly
- RisingV.Shared.dll
Provides extension methods for Stunlock.Core.PrefabGUID to convert it to various game entities.
public static class PrefabGuidExtensions
- Inheritance
-
PrefabGuidExtensions
- Inherited Members
Methods
CreateWorldItem(PrefabGUID, float3, int)
public static void CreateWorldItem(this PrefabGUID guid, float3 pos, int amount)
Parameters
guidPrefabGUIDposfloat3amountint
DebugName(PrefabGUID, string)
public static string DebugName(this PrefabGUID prefabGuid, string prefix = "")
Parameters
prefabGuidPrefabGUIDprefixstring
Returns
GetEntity(PrefabGUID)
Gets an entity from its prefab GUID.
public static Entity GetEntity(this PrefabGUID guid)
Parameters
guidPrefabGUIDThe prefab GUID to look up
Returns
- Entity
The entity associated with the GUID
GetEntityUnit(PrefabGUID, EntityQueryOptions)
public static Entity GetEntityUnit(this PrefabGUID prefabGuid, EntityQueryOptions options = EntityQueryOptions.IncludeDisabled)
Parameters
prefabGuidPrefabGUIDoptionsEntityQueryOptions
Returns
- Entity
LookupName(PrefabGUID)
public static string LookupName(this PrefabGUID prefabGuid)
Parameters
prefabGuidPrefabGUID