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
| RED: write a test before any code makes it pass (check to see what the error message is, make sure its descriptive and meaningful) | |
| GREEN: as fast as you can, write any/meaningful code that makes the test pass! | |
| REFACTOR: refactor the code to be more efficient and readable while maintaining passing state | |
| // https://www.twitch.tv/automateallthethings |
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
| // When creating shaders for Lightweight Pipeline you can you the ShaderGraph which is super AWESOME! | |
| // However, if you want to author shaders in shading language you can use this simplified version as a base. | |
| // Please not this should be only use for reference only. | |
| // It doesn't match neither performance not feature completeness of Lightweight Pipeline Standard shader. | |
| Shader "LightweightPipeline/Physically Based Example" | |
| { | |
| Properties | |
| { | |
| // Specular vs Metallic workflow | |
| [HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.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
| https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/web-browser-keeps-opening-to-msn-by-itself/192def23-0180-4812-bcea-654c502c9928 | |
| I think I know the cause of this: | |
| If you're connected to a wireless network that has a web-based login portal (whether you type a login/password, or just click agree to the terms and conditions, they're both the same) while you're also connected to a wired, then that is probably the cause, and your workaround is to disconnect to that wireless network (or alternatively, just log in.) | |
| Edit: or do this: https://stackoverflow.com/questions/43491861/how-to-disable-automatically-browser-opening-on-wi-fi-hotspot-connection-for-win | |
| Explanation: Windows 10 has a new behavior to correct Windows 7's worse behavior of frequently prioritizing wireless connections over wired connections, while you're connected to both, and getting the interface metrics all wrong. Windows 10 prioritizes wired always, meanwhile it also has a feature so that if it detects a wireless netw |
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
| #!/usr/bin/env bash | |
| # back up from original source: https://github.com/creationix/nvm/blob/master/install.sh | |
| # usage to install specific node version: | |
| # curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash | |
| # - . ~/.nvm/nvm.sh | |
| # - nvm install 4.6.1 | |
| { # this ensures the entire script is downloaded # | |
| nvm_has() { | |
| type "$1" > /dev/null 2>&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 "Custom/Texture2DArraySurfaceShader" | |
| { | |
| Properties | |
| { | |
| _Textures("Textures", 2DArray) = "" {} | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Opaque" } |
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
| if (eventSystem.IsPointerOverGameObject()) return; | |
| if (eventSystem.currentSelectedGameObject != null) return; | |
| // this works with Oculus vr also: | |
| if (EventSystem.current.IsPointerOverGameObject()) return; | |
| if (EventSystem.current.currentSelectedGameObject != null) return; |
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
| "123.345345".ToString("0.0#") // 123.34 |
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/get-unity-cloud-version-number-on-game-run-time.558475/#post-3702130 | |
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditor.Callbacks; | |
| public class CloudBuildHelper : MonoBehaviour | |
| { | |
| #if UNITY_CLOUD_BUILD | |
| public static void PreExport(UnityEngine.CloudBuild.BuildManifestObject manifest) | |
| { |
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
| // ==UserScript== | |
| // @name Force Old Unity Asset Store | |
| // @version 2 | |
| // @include https://www.assetstore.unity3d.com/#!/content/* | |
| // @include https://assetstore.unity.com/packages/* | |
| // @run-at document-start | |
| // @grant none | |
| // ==/UserScript== | |
| // https://unitycoder.com/blog/2018/09/23/browser-plugin-stay-in-old-asset-store/ |