Skip to content

Instantly share code, notes, and snippets.

View XakazukinX's full-sized avatar

Tenta Shigeno XakazukinX

View GitHub Profile
@XakazukinX
XakazukinX / AttachKeycode.cs
Created February 24, 2019 15:46
入力したキーにKeyCodeを反映させるやつ
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
namespace akazukin_omochabako
{
public class AttachKeycode : EditorWindow
{
private Object targetScript;
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<title>i2c-GP2Y0E03</title>
<script src="../../polyfill/blePolyfill.js"></script>
<script src="../../drivers/i2c-GP2Y0E03.js"></script>
@XakazukinX
XakazukinX / HumanBodyBonesList.csv
Created March 19, 2019 14:12
HumanBodyBonesのおなまえと値
HumanBodyBonesの名前
Hips 0 
LeftUpperLeg 1
RightUpperLeg 2
LeftLowerLeg 3
RightLowerLeg 4
LeftFoot 5
RightFoot 6
Spine 7
Chest 8
@XakazukinX
XakazukinX / CustomLabelAttribute.cs
Last active April 8, 2019 19:46
変数名の代わりに好きな文字列をインスペクタに表示できるカスタム属性
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace shigeno_EditorUtility
{
public class CustomLabelAttribute : PropertyAttribute
{
public string newFieldLabel;
@XakazukinX
XakazukinX / Description.cs
Last active April 8, 2019 16:53
インスペクタに説明とその記述者を残せるスクリプト
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class Description : MonoBehaviour
{
[TextArea(1,6)]
public string comment = "ここにスクリプトとかの説明文を書いてください\n";
@XakazukinX
XakazukinX / NonEditableAttribute.cs
Last active June 5, 2019 02:53
さうんどまねーじゃー模索
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace shigeno_EditorUtility
{
public class NonEditableAttribute : PropertyAttribute
{
@XakazukinX
XakazukinX / NonEditableAttribute.cs
Created April 8, 2019 21:17
そのフィールドをインスペクタから変更できなくする自作属性
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace shigeno_EditorUtility
{
public class NonEditableAttribute : PropertyAttribute
{
@XakazukinX
XakazukinX / VS_honda.py
Last active April 19, 2019 04:17
本田と指定回数じゃんけんするやつ。
import datetime
from requests_oauthlib import OAuth1Session
url = "https://api.twitter.com/1.1/statuses/update.json"
text = "\ #本田とじゃんけん / 私は、#本田にチョキで勝つ ✌ 1日1回 @pepsi_jpn をフォローしてじゃんけんに挑戦! 勝てば、その場で #ペプシ #ジャパンコーラ コンビニの無料引換えクーポンもらえる!計16万名様! 【4/19まで #毎日挑戦】 http://bit.ly/2IcJudY "
print ('CONSUMER_KEYを入力してください。')
input_ck = input('>>> ')
CK = input_ck
@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;
@XakazukinX
XakazukinX / SerialPortProviderBase.cs
Last active November 27, 2019 20:49
Unityでシリアル通信を受けるためのクラス
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO.Ports;
using System.Threading;
using System.Threading.Tasks;
using UnityEditor;
using UnityEngine;