public void DeallocateSystemData(uint systemId) { if (!UnsafeHashMap.ContainsKey(SystemData, systemId)) { throw new InvalidOperationException(); } UnsafeUtility.Free((void *)UnsafeHashMap.Get <uint, IntPtr>(SystemData, systemId), Allocator.Persistent); UnsafeHashMap.Remove(SystemData, systemId); }