Skip to content

Instantly share code, notes, and snippets.

View XakazukinX's full-sized avatar

Tenta Shigeno XakazukinX

View GitHub Profile
@XakazukinX
XakazukinX / CheckAnimationClipSettingProperty.cs
Created February 2, 2021 16:04
AnimationClipSettingのプロパティを確認したいときに使ったやつ
using UnityEditor;
using UnityEngine;
public static class CheckAnimationClipSettingProperty
{
[MenuItem("Assets/Check Animation Clip Setting Property")]
static void SetAnimationOptions()
{
var selectClips = Selection.GetFiltered(typeof(AnimationClip), SelectionMode.Assets);
if (selectClips.Length == 0)
@XakazukinX
XakazukinX / uLipSyncVRMBlendShapeProxy.cs
Created January 30, 2021 23:42
uLipSyncをVRM BlendShape Proxyで受けるやつ
using System;
using System.Collections.Generic;
using UnityEngine;
using VRM;
namespace uLipSync
{
[System.Serializable]
public class BlendShapeProxyLipSyncInfo
{
@XakazukinX
XakazukinX / FpsTester.cs
Created July 14, 2020 20:35
FPSをチェックしてくれるやつ
using System;
using UnityEngine;
[Serializable]
public class FixedFpsSetting
{
public bool useFixFps;
public int fixFps = 60;
}
@XakazukinX
XakazukinX / EnumRangeAttribute.cs
Created May 3, 2020 04:27
Enumの範囲を指定するやつ
using System;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Enum, AllowMultiple = true)]
public class EnumRangeAttribute : PropertyAttribute
{
public Type Type { get; private set; }
public int Min { get; private set; }
@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;
@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 / 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 / NonEditableAttribute.cs
Created April 8, 2019 21:17
そのフィールドをインスペクタから変更できなくする自作属性
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
namespace shigeno_EditorUtility
{
public class NonEditableAttribute : PropertyAttribute
{
@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 / 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";