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.IO; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
/// <summary> | |
/// Provides functionality for screenshotting full editor windows, and the inspector in particular |
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; | |
using System.IO; | |
using System; | |
public static class RenderTextureExtensions | |
{ | |
private static DefaultDictionary<RenderTexture, Texture2D> _cachedTextures = new DefaultDictionary<RenderTexture, Texture2D>(); | |
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 System.IO; | |
using UnityEngine; | |
public class ScreenShotter : MonoBehaviour | |
{ | |
static ScreenShotter instance; | |
public static ScreenShotter Instance | |
{ | |
get |
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
import os | |
import sys | |
import random | |
from time import sleep | |
try: | |
from playwright_recaptcha import recaptchav2 | |
from playwright.sync_api import Playwright, sync_playwright, expect | |
except (ImportError, ModuleNotFoundError): | |
os.system( |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
namespace Naninovel |
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; | |
[RequireComponent(typeof(SpriteRenderer))] | |
public class SpriteWrapper : MonoBehaviour { | |
[Header("Sprite Wrapper")] | |
[Tooltip("Should sprite be wrapped when reaching the edge of the screen?"), SerializeField] | |
private bool wrap; |
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; | |
using TMPro; | |
using UnityEngine; | |
using UnityEngine.Localization; | |
/// <summary> | |
/// Sets the default TextMeshPro font to be used. | |
/// </summary> | |
[ExecuteInEditMode] | |
public class DefaultTmpFont : MonoBehaviour |
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 System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
namespace Needle.AnimationUtils | |
{ | |
public class VisualizeMotionTrajectories : MonoBehaviour |
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.Linq; | |
using UnityEngine; | |
[RequireComponent(typeof(AudioSource))] | |
public class AudioVisualizer : MonoBehaviour | |
{ | |
[SerializeField] private float barWidth = 0.1f; | |
[SerializeField] private float updateDelay = 0.04f; | |
[SerializeField] private Color[] barColors; | |
[SerializeField] private float barMultiplier = 2f; |
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
/* | |
Copyright (c) 2022 Omid Saadat | |
Licensed under the MIT License (Do whatevever you want with this!); | |
*/ | |
using UnityEngine; | |
using UnityEditor; | |
public class ObjectActivationSwitch : EditorWindow | |
{ | |
[MenuItem("LeMoonade/ObjectActivationSwitch")] |
NewerOlder