- login to youtube (with your personal account, not with channel account)
- click create channel if your profile drop down menu
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 "Milkbag/CurvatureImageEffect" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _LightStrength ("LightStrength", Float) = 0.3 | |
| _DarkStrength ("DarkStrength", Float) = 0.3 | |
| _Spread ("Spread", Float) = 1.0 | |
| [Toggle(USE_MULTIPLY)] _UseMultiply("Use Multiply", Float) = 0 | |
| [Toggle(CURVATURE_ONLY)] _CurvatureOnly("Curvature Only", Float) = 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
| using UnityEngine; | |
| public class CustomParticleCulling : MonoBehaviour | |
| { | |
| public float cullingRadius = 10; | |
| public ParticleSystem target; | |
| CullingGroup m_CullingGroup; | |
| Renderer[] m_ParticleRenderers; |
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; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class DelayedScene : MonoBehaviour | |
| { | |
| public float delay = 2; | |
| public int sceneToLoad = 1; | |
| public bool allowSkip = true; |
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/unitywebrequest-doesnt-work-with-external-servers.1096930/ | |
| private IEnumerator GetAudioURL(Action<UnityWebRequest> callback) | |
| { | |
| string url = serverIP.Trim() + ":8088/get-audio=" + UnityWebRequest.EscapeURL(DataHolderBehaviour.Instance.youtubeUrl); | |
| Debug.Log("connecting to: " + url); | |
| using (UnityWebRequest webRequest = UnityWebRequest.Get(url)) | |
| { | |
| yield return webRequest.SendWebRequest(); | |
| callback(webRequest); | |
| } |
-- Syntax error: at for, expected -- In line: for o -- In line: ) -- Syntax error: at ), expected -- In line: )
Solution: you are missing ( ) from somewhere (like button-do)
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
| // My first pass is a grayscale filter | |
| // and my second "pass" is a gradient operation that requires to look to adjacent pixels. | |
| // https://forum.unity.com/threads/it-is-possible-to-have-a-multipass-compute-shader.1094386/#post-7053916 | |
| #pragma kernel CSMain | |
| // ( CPU -> GPU ) | |
| Texture2D inputTexture; | |
| // ( GPU -> CPU ) | |
| RWTexture2D <float4> outputTexture; |
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; | |
| using System.IO; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| public class UnityUtils: MonoBehaviour | |
| { | |
| [MenuItem("Tools/Find Broken GUIDs")] |
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; | |
| public class CornerCheat : MonoBehaviour { | |
| public CircleCollider2D circle; | |
| public Rigidbody2D body; | |
| EdgeCollider2D edge; | |
| [Range(0, .2f)] public float distanceThreshold = .03f; | |
| [Range(0, 1)] public float dotThreshold = .96f; |
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
| echo off | |
| REM add egg path | |
| set PYTHONPATH=D:/Program Files/Unity2019_4/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/dist/Brotli-0.4.0-py2.7-win-amd64.egg | |
| REM rename uncompressed data files (because brotli cannot overwrite same file that its packing) | |
| move /Y "F:\Your\Project\Build\uncompressed.wasm.framework.unityweb" "F:\Your\Project\Build\uncompressed.wasm.framework.unityweb2" | |
| move /Y "F:\Your\Project\Build\uncompressed.wasm.code.unityweb" "F:\Your\Project\Build\uncompressed.wasm.code.unityweb2" | |
| move /Y "F:\Your\Project\Build\uncompressed.data.unityweb" "F:\Your\Project\Build\uncompressed.data.unityweb2" | |
| REM compress |