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
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using UnityEngine; | |
[AddComponentMenu("Comment")] | |
public class CommentComponent : MonoBehaviour | |
{ | |
#if UNITY_EDITOR | |
[SerializeField] |
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 TMPro; | |
using TMPro.EditorUtilities; | |
using UnityEditor; | |
using UnityEngine; | |
[CustomEditor(typeof(TMP_FontAsset))] | |
public class FontAssetSaveDisabler : TMP_FontAssetEditor | |
{ | |
private static bool FontAssetsLocked |
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading; | |
using QRCoder; | |
/// <summary> |
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
/// = Sources = | |
/// https://github.com/codebude/QRCoder | |
/// https://github.com/codebude/QRCoder.Unity | |
/// | |
/// = License = | |
/// The MIT License (MIT) | |
/// | |
/// Copyright(c) 2013 - 2018 Raffael Herrmann | |
/// | |
/// Permission is hereby granted, free of charge, to any person obtaining a copy of |
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; | |
public class SnapRectTransformAnchorsToCorners : MonoBehaviour | |
{ | |
[MenuItem("CONTEXT/RectTransform/Snap Anchors To Corners", priority = 50)] | |
private static void Execute(MenuCommand command) | |
{ | |
RectTransform rectTransform = command.context as RectTransform; | |
RectTransform parent = rectTransform.parent as RectTransform; |
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; | |
public class BenchmarkEnterPlayMode | |
{ | |
[InitializeOnLoadMethod] | |
private static void Initialize() | |
{ | |
void OnPlayModeStateChanged( PlayModeStateChange state ) | |
{ |
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.Collections.Generic; | |
using System.Reflection; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UI; | |
#if UNITY_2021_2_OR_NEWER | |
using PrefabStage = UnityEditor.SceneManagement.PrefabStage; | |
using PrefabStageUtility = UnityEditor.SceneManagement.PrefabStageUtility; |
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 UnityEngine; | |
using UnityEngine.Sprites; | |
using UnityEngine.UI; | |
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
using UnityEngine.U2D; | |
#endif | |
#if UNITY_EDITOR | |
using UnityEditor; |
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; | |
public class CustomMaxSizeSetter : EditorWindow | |
{ | |
private const int MINIMUM_MAX_SIZE = 32; | |
private const int MAXIMUM_MAX_SIZE = 2048; | |
private int initialMaxSize = -1; | |
private int currentMaxSize = -1; |
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 UnityEngine; | |
using UnityEngine.Sprites; | |
using UnityEngine.UI; | |
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER | |
using UnityEngine.U2D; | |
#endif | |
#if UNITY_EDITOR | |
using UnityEditor; |
NewerOlder