My Unity repo's git config as of today.
For more complex and complete alternatives, look at:
My Unity repo's git config as of today.
For more complex and complete alternatives, look at:
| tell application "Finder" | |
| activate | |
| -- Get current user's name | |
| tell application "System Events" | |
| set currentUser to (name of current user) | |
| end tell | |
| -- for cleanliness | |
| close every window |
| using UnityEngine; | |
| using UnityEditor.ShaderGraph; | |
| using System.Reflection; | |
| // IMPORTANT: | |
| // - tested with LWRP and Shader Graph 4.6.0-preview ONLY | |
| // - likely to break in SG 5.x and beyond | |
| // - for HDRP, add your own keyword to detect environment | |
| [Title("Custom", "Main Light Data")] |
| #!/bin/sh | |
| # | |
| # An example hook script to verify what is about to be committed. | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to stop the commit. | |
| # | |
| # To enable this hook, rename this file to "pre-commit". | |
| # Redirect output to stderr. |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEngine.Experimental.Rendering.LightweightPipeline; | |
| using UnityEditor.Experimental.Rendering.LightweightPipeline; | |
| //[CustomEditor(typeof(Camera))] | |
| [CustomEditorForRenderPipeline(typeof(Camera), typeof(LightweightRenderPipelineAsset))] | |
| //public class LWRPCustomCameraEditor : Editor { | |
| public class LWRPCustomCameraEditor : CameraEditor { |
| # version: 1.0.1 | |
| # latest source: https://gist.github.com/bitinn/22f6fefe026d8d9e83468864edb8f835 | |
| import bpy | |
| import os | |
| def kmi_props_setattr(kmi_props, attr, value): | |
| try: | |
| setattr(kmi_props, attr, value) |
| Shader "Hidden/BeginHQ/FogMachine" { | |
| HLSLINCLUDE | |
| #include "PostProcessing/Shaders/StdLib.hlsl" | |
| /* effect parameters */ | |
| TEXTURE2D_SAMPLER2D(_MainTex, sampler_MainTex); | |
| TEXTURE2D_SAMPLER2D(_CameraDepthTexture, sampler_CameraDepthTexture); |
| Shader "Leocities/Tileable" | |
| { | |
| Properties | |
| { | |
| _BaseColorMask("BaseColor Mask", 2D) = "white" {} | |
| _NormalMetallicRoughness("Normal Metallic Roughness", 2D) = "black" {} | |
| [Toggle]_UseDecal("Use Decal", Range( 0 , 1)) = 1 | |
| [Toggle]_UseDecalNormal("Use Decal Normal", Range( 0 , 1)) = 1 | |
| _DecalBackgroundColor("Decal Background Color", Color) = (0,0,0,0) | |
| _DecalForegroundColor("Decal Foreground Color", Color) = (1,1,1,0) |
| source dp_MaterialManager.mel; | |
| materialManager; | |
| // Error: "source dp_materialManager.mel;\n\ | |
| // | |
| // Error: "/Users/df/Library/Preferences/Autodesk/maya/2018LT/prefs/scripts/dp_MaterialManager.mel" line 2250.1: Unterminated string. // | |
| // Error: deleteUI mmDockWindow; \n\ | |
| // | |
| // Error: "/Users/df/Library/Preferences/Autodesk/maya/2018LT/prefs/scripts/dp_MaterialManager.mel" line 2252.25: Syntax error // | |
| // Error: deleteUI materialManagerWindow; \n\ | |
| // |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| using UnityEngine.EventSystems; | |
| namespace BeginHQ.Utility { | |
| /* | |
| redirect submit event to parent | |
| */ |