Skip to content

Instantly share code, notes, and snippets.

@voluntas
voluntas / sora_labo.rst
Last active July 9, 2023 13:05
時雨堂 Sora Labo 開発ログ
@halby24
halby24 / DBController.cs
Last active November 13, 2020 11:39
ダイナミックボーン 一括制御するやつ
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class DBController : MonoBehaviour
{
public Transform[] Bones;
[Range(0f, 1f)] public float Damping, Elasticity, Stiffness, Inert;
public float Radius;
public AnimationCurve DanpingDistrib, ElasticityDistrib, StiffnessDistrib, InertDistrib, RadiusDistrib;
@sh-akira
sh-akira / RestartOnStop.cs
Last active September 11, 2018 07:02
UnityエディタでStopしたときにエディタを再起動するエディタ拡張です
//
// Unity Restart Editor On Stop
// @sh_akira
// Put this file to Assets/Editor/
//
using UnityEngine;
using UnityEditor;
[InitializeOnLoad]
@shichiE
shichiE / AnimationClipSmoother.cs
Created September 17, 2018 10:58
AnimatinClipのカーブのスパイクを均すエディタ拡張
// 自由に使ってどうぞ
// [Edit]フォルダに入れてメニューの[Animation Clip Smoother]-[Open]を選択するとウィンドウが表示される。
// 編集するAnimationClipを選択後、編集するカーブを選択して[実行]ボタンを押す。
using UnityEditor;
using UnityEngine;
public class AnimationClipSmoother : EditorWindow
{
/// <summary>
xcargs = ""
xcargs += " IDEBuildOperationMaxNumberOfConcurrentCompileTasks=16"
xcargs += " GCC_GENERATE_DEBUGGING_SYMBOLS=NO DEBUG_INFORMATION_FORMAT=dwarf"
xcargs += " ONLY_ACTIVE_ARCH=YES VALID_ARCHS=arm64"
xcargs += " CC=\"ccacheclang\" GCC_PRECOMPILE_PREFIX_HEADER=NO" if File.exist?("/usr/local/bin/ccacheclang")
@mao-test-h
mao-test-h / ProgressBarDrawer.cs
Created February 21, 2019 18:48
Inspectorにプログレスバーを表示する奴のサンプル
// usage:
// [SerializeField] [ProgressBar] float _sample;
// [SerializeField] [ProgressBar("hoge")] float _sample;
// [SerializeField] [ProgressBar(0f, 1f)] float _sample;
// [SerializeField] [ProgressBar(0f, 1f, "hoge")] float _sample;
namespace Sample
{
using System;
using UnityEngine;
@sh-akira
sh-akira / AnimationSplitter.cs
Created April 17, 2019 22:23
Unityでanimファイルを指定秒数で分割して出力するエディタ拡張です
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace akr.Unity.Editor.Animation
{
public class AnimationSplitter : EditorWindow
{
@XakazukinX
XakazukinX / BlendShapeAnimationExpoter.cs
Created May 15, 2019 16:52
VRMBlendShapeProxyからAnimationClipをはくやつ
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using VRM;
public class BlendShapeAnimationExpoter : EditorWindow
{
//対象のVRMBlendShapeProxy
public VRMBlendShapeProxy proxy;
public string savePath;
@GOROman
GOROman / PMAAnalyze.rb
Last active January 3, 2022 15:04
プリメイドAI (Premaid AI) のモーションフォーマット(.pma)を解析する
#!/usr/bin/env ruby -
# coding: utf-8
# Premaid AI - .pma file analyzer.
SERVO_OFFSET = 7500
class PMAFile
def initialize
@buf = ""