note: This is toy implementation, output is sub-optimal.
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
// https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Editor/ContextMenu/BoxColliderFitChildren.cs | |
// Adjust Box Collider to fit child meshes inside | |
// Usage: You have empty parent transform, with child meshes inside, add box collider to parent then use this | |
// NOTE: Doesnt work if root transform is rotated | |
using UnityEngine; | |
using UnityEditor; | |
namespace UnityLibrary |
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
// https://forum.unity.com/threads/2d-mouse-world-coordinates-in-scene-view.1581912/ | |
#nullable enable | |
#if UNITY_EDITOR | |
using System.Globalization; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.InputSystem; |
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; | |
using System.IO; | |
using UnityEngine; | |
namespace Net.Hinaloe.ScreenCapture | |
{ | |
public class Capture : MonoBehaviour | |
{ | |
// Start is called before the first frame update |
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 UnityEditor; | |
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
public class Blur { |
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; | |
namespace UnityLibrary | |
{ | |
[CustomEditor(typeof(SceneAsset))] | |
public class CustomThumbnail : Editor | |
{ | |
public override bool HasPreviewGUI() => true; |
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
// https://forum.unity.com/threads/tsv-file-as-textassets.495244/#post-9754270 | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
[UnityEditor.AssetImporters.ScriptedImporter(1, "tsv")] | |
public class TSVImporter : UnityEditor.AssetImporters.ScriptedImporter | |
{ | |
public override void OnImportAsset(UnityEditor.AssetImporters.AssetImportContext ctx) |