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
| <# | |
| .SYNOPSIS | |
| Make Textures Quad-Divisible | |
| .DESCRIPTION | |
| Resize PNG and JPG images so their dimensions are divisible by 4. | |
| Useful for textures in game engines that require quad-divisible dimensions to be compressed with DXT or BC formats. | |
| .NOTES | |
| Requires ImageMagick to be installed and available in the PATH. | |
| #> |
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
| // ==UserScript== | |
| // @name Change Font to HarmonyOS Sans SC | |
| // @namespace https://github.com/Maoyeedy | |
| // @grant GM_addStyle | |
| // @version 1.1 | |
| // @author Maoyeedy | |
| // @description Override font to 'HarmonyOS Sans SC' for Chinese sites | |
| // @match *://*.nate.com/* | |
| // @match *://*.huya.com/* | |
| // @match *://*.douyu.com/* |
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
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine.SceneManagement; | |
| namespace Project.Editor | |
| { | |
| /// <summary> | |
| /// Autosave the modified scenes when exiting playmode. | |
| /// </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
| #if UNITY_EDITOR | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace Editor | |
| { | |
| /// <summary> | |
| /// It runs after each assembly reload. | |
| /// </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
| // ==UserScript== | |
| // @name Unity Manual Redirect | |
| // @namespace https://github.com/Maoyeedy/ | |
| // @version 1.0 | |
| // @description Redirect Unity Manual to 2022.3 | |
| // @author Maoyeedy | |
| // @match https://docs.unity3d.com/Manual/* | |
| // @icon https://unity.com/favicon.ico | |
| // @grant none | |
| // ==/UserScript== |
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
| // ==UserScript== | |
| // @name Unity Docs Redirect | |
| // @namespace https://github.com/Maoyeedy/ | |
| // @version 1.1 | |
| // @author Yidi Mao | |
| // @license MIT | |
| // @description Redirect old Unity docs to latest LTS version | |
| // @icon https://unity.com/favicon.ico | |
| // @match https://docs.unity3d.com/*/Documentation/** | |
| // @run-at document-start |
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.Generic; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class MixamoAnimationRenamingProcessor : AssetPostprocessor | |
| { | |
| private static readonly HashSet<string> NamesToReplace = new() | |
| { | |
| "mixamo.com" |
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
| // ==UserScript== | |
| // @name Unity Docs Syntax Highlighter | |
| // @namespace https://github.com/Maoyeedy | |
| // @version 1.3.1 | |
| // @author Yidi Mao, hyblocker | |
| // @license MIT | |
| // @description Adds syntax highlighting to the Unity Documentation. Forked from hyblocker. | |
| // @icon https://unity.com/favicon.ico | |
| // | |
| // @match https://docs.unity3d.com/Manual/* |
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
| $EditorRootPath = "C:\Program Files\Unity\Hub\Editor" | |
| $versions = Get-ChildItem -Directory $EditorRootPath | Select-Object -Expand Name | |
| $latestVersion = ($versions | Sort-Object -Descending | Select-Object -First 1) | |
| $unityExe = Join-Path $EditorRootPath "$latestVersion\Editor\Unity.exe" | |
| Write-Host "Try registering URL:com.unity3d.kharma for $unityExe" | |
| Remove-Item -Path "Registry::HKEY_CLASSES_ROOT\UnityAssetStore" -Recurse -ErrorAction SilentlyContinue | |
| New-Item -Path "Registry::HKEY_CLASSES_ROOT\UnityAssetStore" | Out-Null | |
| New-Item -Path "Registry::HKEY_CLASSES_ROOT\UnityAssetStore\DefaultIcon" | Out-Null |