Skip to content

Instantly share code, notes, and snippets.


Kevin Streicher NoxMortem

  • Vienna
View GitHub Profile
LotteMakesStuff / NativeMeshTest.cs
Created Aug 8, 2018
[NativeCollections] How to copy a regular .C# array into a NativeArray suuuuuper quick using memcpy. its about as fast as its ever gunna get!
View NativeMeshTest.cs
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Mathematics;
using UnityEngine;
public class NativeMeshTest : MonoBehaviour
private NativeArray<float3> vertexBuffer;
private Vector3[] vertexArray;