This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 + "( "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
[CustomEditor(typeof(TestClip))] | |
public class TestClipInspector : Editor { | |
private SerializedProperty paramTypeProp ; | |
private void OnEnable() | |
{ | |
paramTypeProp = serializedObject.FindProperty("ParamType"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Array2D.cs | |
// | |
// Created by Sonoichi. | |
using UnityEngine; | |
using System; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; |