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
guid
PrefabGUIDpos
float3amount
int
DebugName(PrefabGUID, string)
public static string DebugName(this PrefabGUID prefabGuid, string prefix = "")
Parameters
prefabGuid
PrefabGUIDprefix
string
Returns
GetEntity(PrefabGUID)
Gets an entity from its prefab GUID.
public static Entity GetEntity(this PrefabGUID guid)
Parameters
guid
PrefabGUIDThe 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
prefabGuid
PrefabGUIDoptions
EntityQueryOptions
Returns
- Entity
LookupName(PrefabGUID)
public static string LookupName(this PrefabGUID prefabGuid)
Parameters
prefabGuid
PrefabGUID