Skip to content

Instantly share code, notes, and snippets.

View andrew-raphael-lukasik's full-sized avatar
🏴‍☠️

Andrew Raphael Lukasik andrew-raphael-lukasik

🏴‍☠️
View GitHub Profile
@andrew-raphael-lukasik
andrew-raphael-lukasik / LineSegmentDrawer.cs
Last active April 7, 2022 20:55 — forked from unitycoder/LineDrawer.cs
Custom geometry with UI Toolkit
// src* https://gist.github.com/andrew-raphael-lukasik/7229d38dbbc0baa3c2a2ab106fb4f7ef
using UnityEngine;
using UnityEngine.UIElements;
[UnityEngine.Scripting.Preserve]
public class LineSegmentDrawer : VisualElement
{
public float startX { get; set; }
public float startY { get; set; }
public float endX { get; set; }
using UnityEngine;
using Unity.Collections;
using Unity.Mathematics;
public class DynamicMeshData : System.IDisposable
{
#region FIELDS & PROPERTIES