Skip to content

Instantly share code, notes, and snippets.

@mob-sakai
mob-sakai / unity-pipeline.md
Created July 3, 2026 05:06
unity-pipeline.md

Unity Pipeline Package

Unity Version

Transform Unity Editor into a programmable automation element for CI/CD pipelines and development workflows.

🎯 Overview

The Unity Pipeline package enables remote command execution in Unity Editor through HTTP APIs, allowing external tools and scripts to control Unity Editor instances programmatically. Perfect for:

@mob-sakai
mob-sakai / _How_To_Use_GitHub_Releases_As_Markdown_Image_Storage.md
Last active April 11, 2025 22:45
How to use GitHub releases as markdown image storage

How to use GitHub releases as markdown image storage

I often uploaded images to GitHub issues and used their URLs in markdown files (such as README.md).
This method was convenient since it didn’t require adding the images to the repository, and each image had a unique URL.
However, in (probably) March 2025, GitHub changed their policy so that accessing images uploaded to issues now requires cookie-based authentication.
This applies even to images uploaded to issues in public repositories.

As a result, the benefit of 'anyone who knows the URL can access the image' has been lost.

@mob-sakai
mob-sakai / 00_Unity Internal Feature Samples.md
Last active September 13, 2025 16:39
Unity Internal Feature Samples

Unity CLI Tools (macOS)

Installation

curl -sL https://gist.githubusercontent.com/mob-sakai/c6e1a5362bc6237cfc9caafaf02e1de4/raw/unity.sh >> ~/.zprofile

Usage

@mob-sakai
mob-sakai / _README.md
Last active April 5, 2026 15:44
Run shell script on gist

Run shell script on gist

Shells that support process substitution such as bash and zsh allow to run shell script on gist as follows.

# With curl:
bash <(curl -sL ${GIST_URL}) args...

# With wget:
@mob-sakai
mob-sakai / .releaserc.json
Last active December 23, 2020 08:14
semantic-release-upm
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"main",
{
"name": "preview",
"prerelease": true
}
],
Shader "Unlit/VectorGradient (SoftMaskable)"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1)
// vvvv ADD FOR SOFTMASKABLE vvvv
_StencilComp ("Stencil Comparison", Float) = 8
@mob-sakai
mob-sakai / unity_release.sh
Last active February 15, 2019 12:31
UnityアセットをGithubへリリースするスクリプト(UPM対応版)。要github_changelog_generator&gh-release。実行するにはコメント参照
#!/bin/bash -e
# NOTE: Run the following command at the prompt
# bash <(curl -sL 'https://gist.github.com/mob-sakai/e281baa04e1a47148b62387f9c7967df/raw/unity_release.sh')
# NOTE: Set an environment variable `CHANGELOG_GITHUB_TOKEN` by running the following command at the prompt, or by adding it to your shell profile (e.g., ~/.bash_profile or ~/.zshrc):
# export CHANGELOG_GITHUB_TOKEN="«your-40-digit-github-token»"
# 1. << Input release version >>
#!/bin/bash -ex
while getopts "e" OPT
do
case $OPT in
e) EDITOR_ONLY="true";;
\?) echo "[ERROR] Undefined options.";;
esac
done
@mob-sakai
mob-sakai / DeprecatedRemover.cs
Last active September 5, 2018 00:55
古い.unitypackageでインポートしたファイルを削除する(GUID指定)
using System.Collections;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEditor;
using UnityEngine;
namespace Coffee.UIExtensions.UIEffectDepricated
{