Skip to content

Instantly share code, notes, and snippets.

View provencher's full-sized avatar
🏠
Working from home

Eric prvncher provencher

🏠
Working from home
View GitHub Profile
@provencher
provencher / Test.cs
Created November 30, 2018 21:52 — forked from OswaldHurlem/Test.cs
// This doesn't seem to work properly
//#define USE_UNITY_PIN_FUNCTION
using System;
using System.Runtime.InteropServices;
using Unity.Collections;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
using UnityEngine.Assertions;
// Trick for creating a temporary NativeArray which points to the contents of a managed array.