Skip to content

Instantly share code, notes, and snippets.

View cr4yz's full-sized avatar

Jake Evans cr4yz

View GitHub Profile
using Sandbox;
using System;
// ported from https://github.com/ProtoTurtle/UnityBitmapDrawing/blob/d73a977ad918ef1c6b3fa820432291dbed388e54/src/BitmapDrawing.cs
/**
The MIT License (MIT)
Copyright (c) 2014 Lauri Hosio
Permission is hereby granted, free of charge, to any person obtaining a copy
using Sandbox;
using System;
// ported from https://github.com/ProtoTurtle/UnityBitmapDrawing/blob/d73a977ad918ef1c6b3fa820432291dbed388e54/src/BitmapDrawing.cs
public class TextureDrawer
{
private readonly Texture Texture;
using Sandbox;
using Sandbox.UI;
internal class RadialFill : Panel
{
public float BorderWidth { get; set; } = 20;
public float EdgeGap { get; set; } = 2;
public int Points { get; set; } = 64;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
[RequireComponent(typeof(UIDocument))]
public class TestScript : MonoBehaviour
{
private VisualElement _parent;