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 System.Collections.Concurrent; | |
using System.IO; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
/// <summary> | |
/// Uses file system watcher to track changes to specific files in the project directory. |
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
/* | |
A simple little editor extension to copy and paste all components | |
Help from http://answers.unity3d.com/questions/541045/copy-all-components-from-one-character-to-another.html | |
license: WTFPL (http://www.wtfpl.net/) | |
author: aeroson | |
advise: ChessMax | |
editor: frekons | |
*/ | |
#if UNITY_EDITOR |
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
/* | |
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")] |
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.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 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.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 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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// _____ _ _____ | |
// |_ _|_|___ _ _ |_ _|_ _ _ ___ ___ ___ | |
// | | | | | | | | | | | | | -_| -_| | | |
// |_| |_|_|_|_ | |_| |_____|___|___|_|_| | |
// |___| | |
// A Complete and Easy to use Tweens library in One File | |
// | |
// Basic use: |
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.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 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; | |
[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 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 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 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
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( |