This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using Unity.Collections; | |
| using Unity.Audio; | |
| using Unity.Mathematics; | |
| using Unity.Burst; | |
| using System.Collections; | |
| /* | |
| For allocations inside AudioKernels, use Allocator.AudioKernel | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Unity.Collections; | |
| using Unity.Collections.LowLevel.Unsafe; | |
| using Unity.Mathematics; | |
| using UnityEngine; | |
| public class NativeMeshTest : MonoBehaviour | |
| { | |
| private NativeArray<float3> vertexBuffer; | |
| private Vector3[] vertexArray; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RaiseTerrain.cs -- a simple script that raises (or lowers) Unity's built in terrain to be level | |
| // with a GameObject's collider(s). | |
| // | |
| // AUTHOR: Martin "quill18" Glaude -- quill18@quill18.com | |
| // LICENSE: CC0 | |
| // | |
| // The latest version will always be available at: https://gist.github.com/quill18/9becf56f685e60109551e034385fd8f9 | |
| // | |
| using UnityEngine; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| [RequireComponent(typeof(MeshFilter))] | |
| [RequireComponent(typeof(MeshRenderer))] | |
| public class CurvedPlane : MonoBehaviour | |
| { | |
| private class MeshData | |
| { | |
| public Vector3[] Vertices { get; set; } | |
| public Vector2[] Uvs { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) 2016 StagPoint Software | |
| namespace StagPoint.Networking | |
| { | |
| using System; | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| /// <summary> | |
| /// Provides some commonly-used functions for transferring compressed data over the network using |