Skip to content

Instantly share code, notes, and snippets.

@sassembla
sassembla / SingletonHolder.cs
Last active October 26, 2020 06:42
automated singleton holder for Unity. auto-initialize on Player boot time and well isolated.
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class SingletonHolder : MonoBehaviour {
private List<Base> instances = new List<Base>();
private static SingletonHolder holderInstance;
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] private static void NewSingleton () {

[募集終了]NextInt社 つよつよ人材 腰掛け雇用枠

参考ツイート

雇用条件

  • 月収30万円
  • 週3勤務
    • 残りの週2日については副業、勉強、大学院、転職活動等に充ててよい
    • 曜日はいい感じに調整、応相談
  • 土日祝日は休み、休日はちゃんと休め
@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;
@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 = ""
@yoneken
yoneken / cam_stream.py
Last active April 6, 2022 13:34
Tipron scripts
from urllib.request import Request, urlopen
import json
from socket import socket, AF_INET, SOCK_DGRAM
import cv2
import numpy as np
SELF_IP = '192.168.0.102'
TIPRON_IP = '192.168.0.106'
RECEIVE_PORT = 8082
@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
{
@voluntas
voluntas / sora_labo.rst
Last active July 9, 2023 13:05
時雨堂 Sora Labo 開発ログ
@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;
@karljj1
karljj1 / DefaultTmpFont.cs
Last active December 31, 2023 17:48
Localize the default TextMeshPro font.
using System.Reflection;
using TMPro;
using UnityEngine;
using UnityEngine.Localization;
/// <summary>
/// Sets the default TextMeshPro font to be used.
/// </summary>
[ExecuteInEditMode]
public class DefaultTmpFont : MonoBehaviour