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
| // Put this in an editor folder | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.Experimental.LowLevel; | |
| using UnityEngine.Profiling; |
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
| public class CryptoUtil | |
| { | |
| public static byte[] EncryptAes256(byte[] bytes, byte[] key) | |
| { | |
| using var aes = new RijndaelManaged | |
| { | |
| Key = CreateDeriveBytes(key, 32), | |
| }; | |
| aes.GenerateIV(); |
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; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading; | |
| class BitmapEncoder | |
| { | |
| public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData) |
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 UnityEditor; | |
| public class RectTransformTools { | |
| [MenuItem("GameObject/Adjust RectTransform Anchors &a")] | |
| static void Adjust() | |
| { | |
| foreach(GameObject gameObject in Selection.gameObjects){ | |
| adjustRectTransform(gameObject); |
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 MyBox; | |
| using UnityEngine; | |
| public class AutoOverlayUICamera : MonoBehaviour | |
| { | |
| public string castCameraTag = "CastCamera"; | |
| public string overlayUICameraTag = "UICamera"; | |
| public bool autoOverlay = false; | |
| [ConditionalField(nameof(autoOverlay))] | |
| public int autoByDepth = 0; |
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 TMPro; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class InputFieldPlaceholderController : MonoBehaviour | |
| { | |
| private InputField _inputField; | |
| private TMP_InputField _tmpInputField; | |
| private void Awake() |
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 Cysharp.Threading.Tasks; | |
| using Newtonsoft.Json.Linq; | |
| using OxGKit.Utilities.Button; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading; | |
| using UnityEngine; | |
| using UnityEngine.Events; | |
| using UnityEngine.Rendering.Universal; | |
| using UnityEngine.UI; |
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; | |
| public class IsometricRenderer : MonoBehaviour | |
| { | |
| [SerializeField, Tooltip("For static GameObject (just init once).")] private bool _isStatic = false; | |
| [SerializeField, Tooltip("If checked will always update for renderer to keeps size of bounds is newest.")] private bool _isUpdate = false; | |
| [SerializeField, Tooltip("Bounds offset (X and Y).")] private Vector2 _offsetBounds = Vector2.zero; | |
| [SerializeField, Tooltip("Baseline for Z-Index")] private float _floorHeight; | |
| [SerializeField, Tooltip("Adjust scale for height")] private float _heightScale = 1; |
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 UnityEngine.UI; | |
| using MyBox; | |
| using System; | |
| using System.Linq; | |
| public class MultiLayerBar : MonoBehaviour | |
| { | |
| public enum ProgressType | |
| { |
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; | |
| public class PointGizmo : MonoBehaviour | |
| { | |
| enum DrawType | |
| { | |
| Solid, | |
| Wire | |
| } |
OlderNewer