MCPcopy Create free account
hub / github.com/TanTanDev/runity / DespawnGameObject

Method DespawnGameObject

unity/Runity/World.cs:67–75  ·  view source on GitHub ↗
(UInt64 a_identifierBits)

Source from the content-addressed store, hash-verified

65 }
66
67 public void DespawnGameObject(UInt64 a_identifierBits) {
68 RustyGameObject gameObject;
69 if(m_gameObjects.TryGetValue(a_identifierBits, out gameObject)) {
70 UnityEngine.Object.Destroy(gameObject.GameObject);
71 m_gameObjects.Remove(a_identifierBits);
72 } else {
73 UnityEngine.Debug.LogWarning("failed to despawn gameobject with id: " + a_identifierBits);
74 }
75 }
76
77 public void SpawnPrefabWithTransform(string a_name, UInt64 a_identifierBits, CTransform a_transform) {
78 SpawnPrefab(a_name, a_identifierBits);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected