note: This is toy implementation, output is sub-optimal.
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 UnityEditor; | |
| using UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| public static class AutoFitBoxCollider | |
| { | |
| [MenuItem("Tools/Autofit BoxCollider")] | |
| private static void AutoFitBoxCollider() | |
| { | |
| var gos = Selection.gameObjects; |
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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class MeshCut | |
| { | |
| private static Plane blade; | |
| private static Transform victim_transform; | |
| private static Mesh victim_mesh; |
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
| // https://pastebin.com/4h3CqpYy | |
| // Unity PINVOKE interface for pastebin.com/0Szi8ga6 | |
| // Handles multiple cursors | |
| // License: CC0 | |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Runtime.InteropServices; | |
| using System; |
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
| /** | |
| * Easing | |
| * Animates the value of a float property between two target values using | |
| * Robert Penner's easing equations for interpolation over a specified Duration. | |
| * | |
| * Original Author: Darren David darren-code@lookorfeel.com | |
| * | |
| * Ported to be easily used in Unity by Marco Mastropaolo | |
| * | |
| * Credit/Thanks: |
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
| #define STOP_EXTRACTION_WHEN_WINDOW_CLOSED | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Reflection; | |
| using System.Text; | |
| using System.Threading; | |
| using UnityEditor; |
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
| // original JS source https://github.com/vnglst/pong-wars/blob/main/index.html | |
| // https://unitycoder.com/blog/2024/01/29/pong-wars-in-unity/ | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PongWars : MonoBehaviour | |
| { | |
| Color DAY_COLOR = Color.white; |
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.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace UnityLibrary | |
| { | |
| [CustomEditor(typeof(SceneAsset))] | |
| public class CustomThumbnail : Editor | |
| { | |
| public override bool HasPreviewGUI() => true; |
NewerOlder
