Skip to content

Instantly share code, notes, and snippets.

View seiroise's full-sized avatar

seiroise

  • Kyoto, Japan
View GitHub Profile
@ruccho
ruccho / InsertPlayerLoopSample.cs
Last active January 12, 2026 07:58
PlayerLoopに任意の処理を挿入するヘルパークラスと使用サンプル
using UnityEngine;
using UnityEngine.LowLevel;
using UnityEngine.PlayerLoop;
public class InsertPlayerLoopSample
{
public struct SampleCustomUpdate{}
[RuntimeInitializeOnLoadMethod]
private static void RegisterCustomPlayerLoop()
@karljj1
karljj1 / Unity Assembly Definition Debugger.cs
Last active April 2, 2025 23:06
Find out what assemblies are being built and how long each takes.
using System;
using System.Collections.Generic;
using System.Text;
using UnityEditor;
using UnityEditor.Compilation;
using UnityEngine;
[InitializeOnLoad]
public class AsmdefDebug
{
@Hertzole
Hertzole / SceneObject.cs
Last active May 4, 2024 13:04
Unity scene object to easily assign scenes in the inspector.
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[System.Serializable]
public class SceneObject
{
[SerializeField]
private string m_SceneName;
@sanukin39
sanukin39 / UniFPSCounter.cs
Last active June 15, 2025 17:04
Simple FPS conter for Unity
using UnityEngine;
/// <summary>
/// ~ Fps counter for unity ~
/// Brief : Calculate the FPS and display it on the screen
/// HowTo : Create empty object at initial scene and attach this script!!!
/// </summary>
public class UniFPSCounter : MonoBehaviour
{
// for ui.
@asus4
asus4 / GraphAttribute.cs
Last active June 13, 2024 10:47
Show graph as unity custom attribute
/*
MIT License
Copyright (c) 2021 Koki Ibukuro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is