Table of Contents

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 PrefabGUID
pos float3
amount int

DebugName(PrefabGUID, string)

public static string DebugName(this PrefabGUID prefabGuid, string prefix = "")

Parameters

prefabGuid PrefabGUID
prefix string

Returns

string

GetEntity(PrefabGUID)

Gets an entity from its prefab GUID.

public static Entity GetEntity(this PrefabGUID guid)

Parameters

guid PrefabGUID

The 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 PrefabGUID
options EntityQueryOptions

Returns

Entity

LookupName(PrefabGUID)

public static string LookupName(this PrefabGUID prefabGuid)

Parameters

prefabGuid PrefabGUID

Returns

string