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; | |
| using System.IO; | |
| class CustomImportProcessor : AssetPostprocessor { | |
| void OnPostprocessGameObjectWithUserProperties(GameObject go, string[] names, System.Object[] values) { | |
| ModelImporter importer = (ModelImporter)assetImporter; | |
| var asset_name = Path.GetFileName(importer.assetPath); | |
| Debug.LogFormat("OnPostprocessGameObjectWithUserProperties(go = {0}) asset = {1}", go.name, asset_name); | |
| string str = null; |
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 Add Middle Mouse Button support to Notification list | |
| // @namespace https://unitycoder.com | |
| // @version 1 | |
| // @include https://assetstore.unity.com/* | |
| // @run-at document-end | |
| // @grant none | |
| // ==/UserScript== | |
| // info https://unitycoder.com/blog/2021/03/09/add-middle-mouse-button-support-to-assetstore-notifications-panel-greasemonkey-script/ |
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://docs.unity3d.com/Manual/MultiDisplay.html | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| [DefaultExecutionOrder(-100)] | |
| public class MultiMonitor : MonoBehaviour | |
| { | |
| int monitor_count; |
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
| // from https://api-developer.vero.fi/api-details#api=TransferTax&operation=postSendReturn | |
| using System; | |
| using System.Net.Http.Headers; | |
| using System.Text; | |
| using System.Net.Http; | |
| using System.Web; | |
| namespace CSHttpClientSample { | |
| static class Program { | |
| static void Main() { |
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 "WorldNormalFromDepthTexture" | |
| { | |
| Properties { | |
| [KeywordEnum(3 Tap, 4 Tap, Improved, Accurate)] _ReconstructionMethod ("Normal Reconstruction Method", Float) = 0 | |
| } | |
| SubShader | |
| { | |
| Tags { "RenderType"="Transparent" "Queue"="Transparent" } | |
| LOD 100 |
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
| //MIT License | |
| //Copyright (c) 2021 Felix Westin | |
| //Source: https://github.com/Fewes/MinimalAtmosphere | |
| //Ported to GLSL by Marcin Ignac | |
| #ifndef ATMOSPHERE_INCLUDED | |
| #define ATMOSPHERE_INCLUDED | |
| // ------------------------------------- |
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/access-mesh-vertices-in-c-plugin.435106/#post-6880418 | |
| #include <Windows.h> | |
| #include <iostream> | |
| // Namespaces | |
| using namespace std; | |
| // Macros | |
| #define NT_MESH_API(retrun_type,func_name) extern "C" _declspec(dllexport) retrun_type func_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
| // https://www.patreon.com/posts/grass-geometry-2-40077798 | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| [RequireComponent(typeof(MeshFilter))] | |
| [RequireComponent(typeof(MeshRenderer))] | |
| [ExecuteInEditMode] |
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 Fix Old Asset Store Links | |
| // @version 1 | |
| // @include https://www.assetstore.unity3d.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| // get current url | |
| var URL = window.location.href; |
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/zoom-and-pan-an-image.1048598/#post-6839018 | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class PanZoom : MonoBehaviour { | |
| Vector3 touchStart; | |
| public float zoomOutMin = 1; | |
| public float zoomOutMax = 8; |