HKEY_CURRENT_USER > Software > [Publisher Name] > [App Name]
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 UnityEngine; | |
| using UnityEngine.Rendering; | |
| using UnityEngine.Rendering.Universal; | |
| /* | |
| - Renders DepthOnly pass to _CameraDepthTexture, filtered by LayerMask | |
| - If the depth texture is generated via a Depth Prepass, URP uses the Opaque Layer Mask at the top of the Forward/Universal Renderer asset | |
| to determine which objects should be rendered to the depth texture. This feature can be used to render objects on *other layers* into the depth texture as well. |
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://forum.unity.com/threads/export-unity-mesh-to-obj-or-fbx-format.222690/#post-9379961 | |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.IO; | |
| using System.Text; | |
| public class ExportMeshToOBJ : ScriptableObject | |
| { | |
| [MenuItem("GameObject/Export to OBJ")] | |
| static void ExportToOBJ() |
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://yal.cc/unity3d-window-alpha/ | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class WindowAlpha { | |
| private static IntPtr __defaultWindow = IntPtr.Zero; | |
| private static IntPtr getDefaultWindow() { | |
| if (__defaultWindow == IntPtr.Zero) { | |
| #if (UNITY_EDITOR || UNITY_STANDALONE) |
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 System.Linq; | |
| using UnityEditor; | |
| using UnityEditorInternal; | |
| using UnityEngine; | |
| public class AutoSpriteSlicer : AssetPostprocessor | |
| { | |
| private const string PathTrigger = "_AnimationSheet"; |
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
| Shader "Pristine Grid" | |
| { | |
| Properties | |
| { | |
| [Toggle] _WorldUV ("Use World Space UV", Float) = 1.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| _LineWidthX ("Line Width X", Range(0,1.0)) = 0.01 | |
| _LineWidthY ("Line Width Y", Range(0,1.0)) = 0.01 |
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
| Shader "Unlit/InfiniteGrid" | |
| { | |
| Properties | |
| { | |
| [Toggle] _WorldUV ("Use World Space UV", Float) = 1.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| _GridBias ("Grid Bias", Float) = 0.5 | |
| _GridDiv ("Grid Divisions", Float) = 10.0 | |
| _BaseColor ("Base Color", Color) = (0,0,0,1) | |
| _LineColor ("Line Color", Color) = (1,1,1,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
| Shader "Unlit/MatCap Techniques" | |
| { | |
| Properties | |
| { | |
| [NoScaleOffset] _MatCap ("MatCap", 2D) = "white" {} | |
| [KeywordEnum(ViewSpaceNormal, ViewDirectionCross, ViewDirectionAligned)] _MatCapType ("Matcap UV Type", Float) = 2 | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } |