Skip to content

Instantly share code, notes, and snippets.

View esnya's full-sized avatar

esnya

  • Japan
View GitHub Profile
@esnya
esnya / UdonChipsInstantShop_Trigger.cs
Created July 7, 2021 09:24
UdonChipsInstantShop Trigger
using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon.Common.Interfaces;
#if !COMPILER_UDONSHARP && UNITY_EDITOR
using System.Linq;
using System.Reflection;
using UdonSharpEditor;
using UnityEditor;
#endif
@esnya
esnya / bulk_import.ps1
Last active March 30, 2021 12:58
Bulk Import FBX
$override = $FALSE
$threads = 24
Get-ChildItem -Recurse *.fbx | ForEach-Object -ThrottleLimit $threads -Parallel {
$srcDir = $_.DirectoryName
$src = $_.FullName
$baseName = $_.BaseName
$dst = "$srcDir\$baseName.blend"
if (-not $(Test-Path $dst) -or $override) {
/* ==UserStyle==
@name better-home
@namespace nekometer.com.com/esnya/better-home
@version 1.0.0
@description Better Home
@license MIT License
@author esnya
@preprocessor stylus
@var number ld-lines "Location Desc Lines" 2
@var number lf-lines "Location Firends Lines" 2
@esnya
esnya / 01_release_unitypackage.yml
Last active March 11, 2021 12:53
Release Unitypackage
name: Release Unity Package
on:
- push
jobs:
prebuild:
runs-on: ubuntu-latest
outputs:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
@esnya
esnya / RandomObjectColor.shader
Last active September 12, 2020 02:19
LightmapStaic有効かEnable GPU Instancing有効でないと機能しません。
Shader "Custom/RandomObjectColor"
{
Properties
{
_Color("Color", Color) = (1,1,1,1)
_MainTex("Albedo", 2D) = "white" {}
// _Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5
[Space] [NoScaleOffset] _SpecGlossMap("Roughness Map", 2D) = "black" {}
@esnya
esnya / GoogleDrivePanoramaUtility.cs
Last active August 14, 2020 05:10
Google Drive のフォルダかファイルの共有URLを指定すると VRChat の VRC_Panorama を自動的に設定するツール
#if UNITY_EDITOR
using System.Linq;
using UnityEngine;
using UnityEditor;
using System;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
@esnya
esnya / UnityMotionReplacer.cs
Last active August 9, 2020 07:30
AnimatiorController 内の同じ Motion を一括で置き換えるツール
#if UNITY_EDITOR
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEditor;
using UnityEditor.Animations;
namespace EsnyaFactory {
@esnya
esnya / AnimatorUtilities.cs
Last active March 23, 2023 21:17
AnimatorControllerLayerをコピーするやつ。Editorフォルダの下に入れること。
#if UNITY_EDITOR
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEditor;
using UnityEditor.Animations;
namespace EsnyaFactory {
public class AnimatorUtilities : EditorWindow
{
@esnya
esnya / VRC_PlaylistGenerator.cs
Last active July 5, 2020 11:34
テキストファイルからまとめてVideosを設定するやつ。VRC_SyncVideoStream コンポーネントを右クリック。
/**
* VRC Playlist Generator
*
* Author: esnya
* License: MIT License
*/
#if UNITY_EDITOR
using System.Linq;
using UnityEngine;