7
2021
Compress WebGL build manually from command line (brotli)
Building brotli compressed webgl release can take hours (if you have large 3d models in the project..), and you cannot do anything with the project while unity is compressing it. Solution:Make (really fast) uncompressed builds from unity,then compress the webgl data files manually from commandline! […]
14
2020
Marching Squares
Unity version of the basic Marching Squares tutorial from The Coding Train https://www.youtube.com/watch?v=0ZONMNUKTfU Project: *Note: Enable Gizmos to see debug lines in Game Windowhttps://github.com/unitycoder/MarchingSquares recording from live streamhttps://www.youtube.com/watch?v=vR2fc7U9hME
4
2020
LineRenderer with Outline Shader
Tried using sprite outline shader with LineRenderer, works surprisingly well References:Sprite shader source: https://forum.unity.com/threads/help-to-find-an-asset-solution.755273/#post-5246960 (2nd shader in that post)Forum topic: https://forum.unity.com/threads/achieve-a-stroke-transparent-effect-with-the-line-renderer.999682/
7
2020
Scale Canvas and UI with Screen Size
How to:From Canvas component, Canvas Scaler:– UI Scale Mode: “Scale with Screen Size”– Reference Resolution : 800 x 600– Screen Match Mode: Match with Width or Height– Match: 1 RectTransform settings for Text TextMeshPro:(other RectTransform values are default, like pivot)
5
2020
Shader: Drawing Circles Pattern
Drawing Pattern of Circles in shader. (test for this forum topic) Shader:https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Shaders/2D/Patterns/CirclesPattern.shader References:– Drawing Shapes : https://thebookofshaders.com/07/– Drawing Patterns : https://thebookofshaders.com/09/
13
2020
Reference Image Viewer Editor Window
If you are working on a single monitor, and/or need to have some reference images in view.. Here’s a small editor plugin to show texture on a window. Source: https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Editor/Tools/ReferenceImageViewer.cs Usage:– Copy file into your project, into some Editor/ folder– You can then use from […]
13
2020
How to use AudioImporter Sample Rate lower than 8000hz
Sound importer seems to allow only allows 8000hz as the lowest sample rate.. But you can force lower values by modifying the audioclip .meta file! First select PCM or ADPCM as the Compression Format: Then modify the audio clip meta file (same folder as the […]
20
2019
(Free) Runtime Text To Speech Plugin
Needed simple TTS plugin for a small unity windows game that i’m working on.. I know asset store has few, but they seem to rely on Windows Speech platform voices, and one plugin that was completely standalone didnt really have good enough speech quality.. First […]
9
2019
Using raylib.dll in Unity
raylib is https://github.com/raysan5/raylibThere are c# bindings available at https://github.com/ChrisDill/Raylib-cs Steps:– Download raylib.dll from releases (i took raylib-2.5.0-Win64-msvc15.zip)– Unzip and copy \raylib-2.5.0-Win64-msvc15\bin\raylib.dll into your Unity project Plugins/ folder– Download c# bindings repository (click “clone or download” .. as zip)– Unzip and copy \Raylib-cs-master\Bindings\ folder into your […]
14
2019
Better Video Player for Unity Premium Videos
Unity Learn Premium videos cannot be resized, opened in new tab or moved around.. With some javascript, you can pop the video out into resizable and draggable div! Source:https://gist.github.com/unitycoder/21fd5cce51932ccf524bdda5a2fe8401 Instructions:– Copy paste that whole script into Browser console (F12) Results: References:https://forum.unity.com/threads/how-to-get-bigger-not-full-screen-unity-learn-videos.776813/ Notes:– Currently it support […]
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on