Skip to content

Instantly share code, notes, and snippets.

using System;
using CustomUtils.Runtime.Animations.Base;
using JetBrains.Annotations;
using PrimeTween;
using UnityEngine;
namespace CustomUtils.Runtime.Animations
{
/// <summary>
/// Animates the alpha value of a CanvasGroup based on state.
@hurriCase
hurriCase / BaseStorageProvider.cs
Created October 14, 2025 13:15
R3 ReaactiveProperty based storage system. Supports different storage types through generic provider implementation.
using System;
using System.Collections.Generic;
using System.Threading;
using Cysharp.Threading.Tasks;
using MemoryPack;
using UnityEngine;
namespace CustomUtils.Runtime.Storage.Base
{
internal abstract class BaseStorageProvider : IStorageProvider
@hurriCase
hurriCase / Entry.cs
Created October 14, 2025 13:04
EnumArray - High-performance enum-keyed collection for Unity with zero-allocation enumeration
using System;
using UnityEngine;
namespace CustomUtils.Runtime.CustomTypes.Collections
{
// Was created to support serialization for nested types without any issues
[Serializable]
public struct Entry<TValue>
{
[field: SerializeField] public TValue Value { get; set; }