Exemple #1
0
    public void SwapComponents(ArchetypeChunk leftChunk, int leftIndex, ArchetypeChunk rightChunk, int rightIndex)
    {
        if (m_IsMainThread)
        {
            BeforeStructuralChange();
        }

        var globalSystemVersion = EntityComponentStore->GlobalSystemVersion;

        ChunkDataUtility.SwapComponents(leftChunk.m_Chunk, leftIndex, rightChunk.m_Chunk, rightIndex, 1,
                                        globalSystemVersion, globalSystemVersion);
    }