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.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class GizmoUtilitySample : MonoBehaviour | |
{ | |
GameObject[] gameObjects; | |
List<GizmoInfo> gizmoInfos = new List<GizmoInfo>(); |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// ProjectView拡張 | |
/// ボタンを追加する | |
/// </summary> | |
public class ProjectView | |
{ |
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
/// <summary> | |
/// Gizmo表示をスクリプトから変更するためのクラス | |
/// </summary> | |
public class GizmoVisibleSwitcher | |
{ | |
Type annotation; | |
Type annotationUtility; | |
MethodInfo getAnnotations; | |
MethodInfo setGizmoEnabled; |
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 UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
/// <summary> | |
/// ラベルで型名を表示するための<see cref="PropertyAttribute"/> | |
/// </summary> | |
public class LabelTypeNameAttribute : PropertyAttribute | |
{ |
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; | |
using UnityEngine.SceneManagement; | |
using System.Reflection; | |
public class DiscardChangeSceneAsset | |
{ | |
/// <summary> | |
/// シーンの変更を破棄する | |
/// </summary> | |
/// <param name="scene"></param> |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class LabelAttribute : PropertyAttribute | |
{ |
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.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
public class SaveSceneAssetBlocker : AssetModificationProcessor | |
{ | |
/// <summary> | |
/// 保存したくないシーン名 | |
/// </summary> | |
static string _dontSaveSceneName; |
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; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEditor.Timeline; | |
public class TimelinePlayHeadTest : MonoBehaviour | |
{ | |
System.Object timelineWindowObj; | |
EventInfo onChangedPlayHead; | |
Delegate changedPlayHeadHandlerDelegate; |
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
/// <summary> | |
/// 環状配列 | |
/// 2のべき乗でしか作れない | |
/// スレッドセーフではない | |
/// </summary> | |
public class RingArray<T> : System.Collections.ICollection | |
{ | |
T[] buffer; | |
int top, bottom; | |
int mask; |
NewerOlder