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
// written by https://github.com/FreyaHolmer so use at your own risk c: | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary>Utility functions to copy GUIDs, as well as Copy/Paste import settings</summary> | |
public static class AssetCopyUtils { | |
const int CTX_MENU_LOCATION = 70; |
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
[gd_resource type="Theme" load_steps=12 format=3 uid="uid://7bvxnk5n5imx"] | |
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6h42l"] | |
content_margin_left = 10.5 | |
content_margin_top = 8.75 | |
content_margin_right = 10.5 | |
content_margin_bottom = 8.75 | |
bg_color = Color(0.117647, 0.117647, 0.117647, 1) | |
draw_center = false | |
border_color = Color(1, 1, 1, 0.137255) |
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
#if URP | |
using UnityEngine.Rendering.Universal; | |
#endif | |
using System; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
using SCPE; | |
namespace Ardenfall.Effects |
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
Shader "Ardenfall/Effects/DistantPixelize" | |
{ | |
HLSLINCLUDE | |
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" | |
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/DeclareDepthTexture.hlsl" | |
float _MaxPixelSize; | |
float _MinPixelSize; | |
float _MaxDistance; |
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
// Adds context menu to TextureImporter objects, saves .dds next to input texture, including mipmaps. | |
// Tested with Unity 2021.3.4 | |
using System; | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using Unity.Collections.LowLevel.Unsafe; | |
struct DDSHeader |
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.Generic; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
[ExecuteInEditMode] | |
public class GlobalShaderParams : MonoBehaviour | |
{ |
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.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
using Debug = UnityEngine.Debug; | |
using Object = UnityEngine.Object; |
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
/* | |
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 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 UnityEngine; | |
namespace EnhancedHierarchy { | |
[InitializeOnLoad] | |
static class PreviewBackgroundColor { | |
private static readonly Color backgroundColor = new Color(1f, 0f, 1f); // Change this color | |
static PreviewBackgroundColor() { |
NewerOlder