This file contains hidden or 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 UnityEngine; | |
/// <summary> | |
/// Transform型の拡張メソッドを管理するクラス | |
/// </summary> | |
public static class TransformExtensions | |
{ | |
/// <summary> | |
/// X座標を設定します | |
/// </summary> |
This file contains hidden or 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 UnityEngine; | |
/// <summary> | |
/// Component型の拡張メソッドを管理するクラス | |
/// </summary> | |
public static class ComponentExtensions | |
{ | |
/// <summary> | |
/// X座標を設定します | |
/// </summary> |
This file contains hidden or 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 UnityEngine; | |
/// <summary> | |
/// GameObject型の拡張メソッドを管理するクラス | |
/// </summary> | |
public static partial class GameObjectExtensions | |
{ | |
/// <summary> | |
/// 位置を設定します | |
/// </summary> |
This file contains hidden or 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 UnityEngine; | |
public class RegexAttribute : PropertyAttribute | |
{ | |
public readonly string Pattern; | |
public readonly string HelpMessage; | |
public RegexAttribute(string pattern, string helpMessage) | |
{ | |
Pattern = pattern; |
This file contains hidden or 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.Text.RegularExpressions; | |
using UnityEditor; | |
using UnityEngine; | |
[CustomPropertyDrawer(typeof(RegexAttribute))] | |
public class RegexDrawer : PropertyDrawer | |
{ | |
private const int HELP_HEIGHT = 30; | |
private const int TEXT_HEIGHT = 16; |
This file contains hidden or 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 UnityEngine; | |
public class CompactAttribute : PropertyAttribute | |
{ | |
} |
This file contains hidden or 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; | |
using UnityEngine; | |
[CustomPropertyDrawer(typeof (CompactAttribute))] | |
internal class CompactDrawer : PropertyDrawer | |
{ | |
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
{ | |
EditorGUIUtility.LookLikeControls(); |
This file contains hidden or 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; | |
/// <summary> | |
/// Debugクラスに関する汎用関数 | |
/// </summary> | |
public static class DebugCommon | |
{ | |
/// <summary> | |
/// 条件をチェックし、その条件が false の場合は例外を投げます | |
/// </summary> |
This file contains hidden or 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; | |
using UnityEngine; | |
/// <summary> | |
/// GameObject型の拡張メソッドを管理するクラス | |
/// </summary> | |
public static partial class GameObjectExtensions | |
{ | |
/// <summary> | |
/// 指定されたコンポーネントを安全に取得します |
This file contains hidden or 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; | |
/// <summary> | |
/// 配列の拡張メソッドを管理するクラス | |
/// </summary> | |
public static partial class ArrayExtensions | |
{ | |
/// <summary> | |
/// 指定された配列内の各要素に対して、指定された処理を実行します | |
/// </summary> |