Skip to content

Instantly share code, notes, and snippets.

@MizoTake
MizoTake / AssetSizeViewer.cs
Created April 17, 2025 02:46
UnityのAssetをサイズ順に並べてくれるEditor拡張
using UnityEditor;
using UnityEngine;
using System.IO;
using System.Linq;
using System.Collections.Generic;
public class AssetSizeViewer : EditorWindow
{
private Vector2 scroll;
private List<(string path, long size)> assetSizes = new();
@MizoTake
MizoTake / cherry-picks.sh
Last active September 26, 2024 07:58
cherry-picks
#!/bin/bash
# チェリーピックするコミットハッシュを格納したファイル
commit_file="commits.txt"
# ファイルが存在するかチェック
if [ ! -f "$commit_file" ]; then
echo "Commit file not found: $commit_file"
exit 1
fi
@MizoTake
MizoTake / gist:528ae730eeb1ab2204aa33aabd9bf26d
Created September 25, 2023 22:31
conda_env_nerfstudio_txt
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
@EXPLICIT
https://conda.anaconda.org/conda-forge/win-64/ca-certificates-2023.7.22-h56e8100_0.conda
https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64/cuda-cccl-11.8.89-0.tar.bz2
https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64/cuda-cudart-11.8.89-0.tar.bz2
https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64/cuda-cuobjdump-11.8.86-0.tar.bz2
https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64/cuda-cupti-11.8.87-0.tar.bz2
https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64/cuda-cuxxfilt-11.8.86-0.tar.bz2
using System;
using System.IO;
using System.Text;
using UnityEngine;
using Object = UnityEngine.Object;
#if UNITY_EDITOR
using UnityEditor;
#endif
[Serializable]
using System;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
namespace ChangeEditorColorFromPath
{
#if UNITY_EDITOR_WIN
@MizoTake
MizoTake / BaseComponentSystem.cs
Last active June 2, 2018 16:05
Unity ECS to MonoBehaviour-ish
using System.Collections.Generic;
using UniRx;
using UniRx.Triggers;
using Unity.Entities;
using Unity.Mathematics;
using UnityEngine;
using UnityEngine.UI;
public abstract partial class BaseComponentSystem<T> : ComponentSystem where T : struct
{