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:
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Linq; | |
using System; | |
/// <summary> | |
/// Remove empty folders automatically. |
using UnityEngine.Networking; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
using UnityEngine; | |
using System; | |
namespace Mobcast.Coffee.AssetSystem | |
{ |
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEditor; | |
/// <summary> | |
/// Component converter for editor. | |
/// </summary> | |
public static class ComponentConverter | |
{ | |
//%%%% v Context menu for editor v %%%% |
{ | |
"branches": [ | |
"+([0-9])?(.{+([0-9]),x}).x", | |
"master", | |
"main", | |
{ | |
"name": "preview", | |
"prerelease": true | |
} | |
], |
#!/bin/bash -ex | |
while getopts "e" OPT | |
do | |
case $OPT in | |
e) EDITOR_ONLY="true";; | |
\?) echo "[ERROR] Undefined options.";; | |
esac | |
done |
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 |
#!/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 >> |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UniRx; | |
using System.Linq; | |
using System; | |
/// <summary> | |
/// ReactiveCollection拡張メソッド. | |
/// </summary> |