Skip to content

Instantly share code, notes, and snippets.

View hmcGit's full-sized avatar

Hiromitsu Matsubara hmcGit

View GitHub Profile
@decoc
decoc / CompileLocker.cs
Last active February 11, 2023 08:48
This editor utility can lock/unlock unity script compile from menu item. See more https://raspberly.hateblo.jp/entry/InvalidateUnityCompile
using UnityEngine;
using UnityEditor;
/// <summary>
/// This editor utility can lock/unlock unity script compile from menu item.
/// See more https://raspberly.hateblo.jp/entry/InvalidateUnityCompile
/// </summary>
public static class CompileLocker
{
[MenuItem("Compile/Lock", false, 1)]
@wotakuro
wotakuro / UnityEditor拡張便利群.txt
Last active September 27, 2022 08:09
UnityEditor拡張便利群
1.プロジェクトのアセットをザクっと見渡すツールです
https://github.com/wotakuro/AssetsReporter
2.300フレーム毎にProfilerログを保存することで300フレーム上限問題を回避します。
https://github.com/wotakuro/UnityProfilerIntervalSave
3.Profilerのログを分割する事で、300フレーム上限問題を回避します
https://github.com/wotakuro/ProfilerBinarylogSplit
4.ScreenShotをProfilerのログに埋め込みします
@mpyw
mpyw / free_email_provider_domains.txt
Last active March 26, 2025 20:53 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. All forks from the original gist are merged. The list only contains valid hostnames.
0039.cf
0039.ga
0039.ml
00b2bcr51qv59xst2.cf
00b2bcr51qv59xst2.ga
00b2bcr51qv59xst2.ml
02466.cf
02466.ga
02466.ml
07819.cf
@yasuyuki-kamata
yasuyuki-kamata / DisableAnalytics.cs
Last active July 6, 2021 04:48
ランタイムでAnalyticsを無効化する(シーン内のオブジェクトにアタッチする必要はない)
using UnityEngine;
public class DisableAnalytics : MonoBehaviour
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
public static void OnRuntimeMethodLoad()
{
UnityEngine.Analytics.Analytics.enabled = false;
UnityEngine.Analytics.Analytics.deviceStatsEnabled = false;
UnityEngine.Analytics.Analytics.limitUserTracking = true;
@nkjzm
nkjzm / RectTransformExtensions.cs
Last active April 7, 2022 12:17
座標を変えずにPivotとAnchorの値を変えるRectTransformの拡張メソッド
using UnityEngine;
public static class RectTransformExtensions
{
/// <summary>
/// 座標を保ったままPivotを変更する
/// </summary>
/// <param name="rectTransform">自身の参照</param>
/// <param name="targetPivot">変更先のPivot座標</param>
public static void SetPivotWithKeepingPosition(this RectTransform rectTransform, Vector2 targetPivot)
@OhkuboSGMS
OhkuboSGMS / EyeStone.cs
Created November 11, 2018 12:52
RectTransformUtility.ScreenPointToLocalPointInRectangleではまった
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace EscapeRoom.LogicImplement
{
public class EyeStone : Selectable ,IDragHandler
{
public Item Item;
@yutokun
yutokun / CSV Parser for C#.md
Last active September 15, 2019 13:42
Simple CSV Parser for C# without any dependency. (CC0)
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using VRM;
public class AutoBlinkForVrm : MonoBehaviour
{
@kiyossy
kiyossy / CustomDefaultTrackableEventHandler.cs
Last active November 28, 2021 17:40
Vuforiaでマーカーを認識した時、トラッキングが外れた時に特定のアクションを起こさせるカスタムクラス
using UnityEngine;
using UnityEngine.Events;
using Vuforia;
public class CustomDefaultTrackableEventHandler : DefaultTrackableEventHandler {
public UnityEvent OnTrackingAction;
public UnityEvent OffTrackingAction;
protected override void OnTrackingFound ()
@weaming
weaming / boostnote2md.py
Last active August 7, 2023 09:51
Convert boostnote cson format data to markdown
#!/usr/bin/env python3
# coding: utf-8
"""
Author : weaming
Created Time : 2018-05-26 21:32:59
Prerequisite:
python3 -m pip install cson arrow
"""
import json
import os