🏴☠️
This file contains 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
// src: https://gist.github.com/andrew-raphael-lukasik/66d898be737734f26e607e6526d22901 | |
using IO = System.IO; | |
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Scenes; | |
using Unity.Entities.Serialization; | |
public static class Worlds | |
{ |
This file contains 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
// src: https://gist.github.com/andrew-raphael-lukasik/917046557baed6646c9fdc3b40671307 | |
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Collections; | |
using Unity.Rendering; | |
[UpdateInGroup( typeof(PresentationSystemGroup) )] | |
public class SelectionSystem : SystemBase | |
{ |
This file contains 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
// src: https://gist.github.com/andrew-raphael-lukasik/e02f21cc507da9e5eb7569b8793e70f4 | |
using System.Collections.Generic; | |
using System.Linq; | |
using IO = System.IO; | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
using UnityEngine.UIElements; | |
#if UNITY_EDITOR | |
using UnityEditor.UIElements; | |
#endif |
This file contains 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 Random = Unity.Mathematics.Random; | |
[RequireComponent( typeof(MeshFilter) , typeof(MeshRenderer) )] | |
public class GenerateRandomPointCloudMesh : MonoBehaviour | |
{ | |
Mesh _mesh; | |
[SerializeField] int _numVerties = 100; | |
void Awake () | |
{ | |
_mesh = new Mesh(); |
This file contains 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
// src*: https://gist.github.com/andrew-raphael-lukasik/09c8a9c29bb5548ea65273653474f8f1 | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
public unsafe struct VeryUnsafeList <T> : System.IDisposable where T : unmanaged | |
{ | |
public T* ptr; |