Skip to content

Instantly share code, notes, and snippets.

@sonoichi60
sonoichi60 / ConstructorInfoExtensions.cs
Last active August 11, 2018 18:29
型の構造を出力する拡張メソッド
using System.Reflection;
public static class ConstructorInfoExtensions
{
public static string ToCode(this ConstructorInfo info)
{
var str = "";
str += info.IsPublic ? "public " : (info.IsPrivate ? "private " : "protected ");
str += info.Name + "( ";
@sonoichi60
sonoichi60 / TestClipInspector.cs
Created July 31, 2018 15:58
ClipのInspecter表示を変更するサンプル
using UnityEditor;
[CustomEditor(typeof(TestClip))]
public class TestClipInspector : Editor {
private SerializedProperty paramTypeProp ;
private void OnEnable()
{
paramTypeProp = serializedObject.FindProperty("ParamType");
@sonoichi60
sonoichi60 / Array2D.cs
Last active January 27, 2018 20:44
LinQでも使える2次元配列クラス[Unity][C#]
// Array2D.cs
//
// Created by Sonoichi.
using UnityEngine;
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;