Skip to content

Instantly share code, notes, and snippets.

View halfspacer's full-sized avatar

Halfspacer halfspacer

View GitHub Profile
@halfspacer
halfspacer / FlexibleGridLayoutGroup.cs
Created July 18, 2022 20:26
[Unity] Flexible Layout Group
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Utils {
[ExecuteAlways]
[RequireComponent(typeof(RectTransform))]
public class FlexibleGridLayoutGroup : MonoBehaviour {
[SerializeField] private RectOffset padding = new();
[SerializeField] private float spacing;
@halfspacer
halfspacer / NetSerializer.cs
Last active April 17, 2025 13:08
NetSerializer
using System;
using System.Buffers;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine;
namespace Utils {
/// <summary>