24
2024
Use TikTok-TTS in Unity (with WebRequest)
Was watching some weird physics based game developed at https://www.twitch.tv/clayman_dev and they used node.js+tiktok TTS to play funny text-to-speech sounds! Then found this library, https://github.com/Steve0929/tiktok-tts (took a while to get it working as node.js, due to sessionid+server mismatch, but posted solution here https://github.com/Steve0929/tiktok-tts/issues/17 ) Then […]
9
2024
Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
Required Packages – Tested this on Unity 2023.2.3f1 (but works in other versions too)– AI Navigation : https://docs.unity3d.com/Packages/com.unity.ai.navigation@2.0/manual/index.html– 2D Tilemap Editor : https://docs.unity3d.com/Packages/com.unity.2d.tilemap@1.0/manual/index.html– 2D Tilemap Extras : https://docs.unity3d.com/Packages/com.unity.2d.tilemap.extras@4.0/manual/index.html Setup Tilemap with 3D Prefabs – Add 2D Tilemap to Scene– Set Grid Cell layout to XZY […]
4
2024
Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
I just wanted to build Quest 3 XR demo apk quickly.. but ended up fighting with android sdk installations. STEPS TROUBLESHOOTING sdkmanager.bat says: “.. been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime […]
29
2023
UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
Before: ——————————– After: Steps: If you broke something, install hub again. (or better if you had taken backup copy of app.asar before modifying it) You could modify other parts too, like remove excess padding from those rows.. video Older post about customizing colorshttps://unitycoder.com/blog/2022/03/02/customize-unityhub-colors/ You can […]
22
2023
Fake 3D Parallax Effect using Shader & (Pre-generated) Depth Map
Cool effect: http://depthy.stamina.pl/#/sample/mango Converted this few lines into unity shader:https://gist.github.com/bozzin/5895d97130e148e66b88ff4c92535b59 Finished shader (unlit, build in pipeline) + mouse position script:https://gist.github.com/unitycoder/696a07c9de34e6a8fd28dc7de2362501
10
2023
Using OpenAI API with WebRequest from Unity
Simple example for calling openAI completions API, with simple webrequest (and JSON data). Repository:https://github.com/unitycoder/UnityOpenAIGPT3 Making of video:
9
2023
[LudumDare52] Theme: Harvest
Small bot programming game, sadly has only 2 commands to use in this initial version.. ldjam entry:https://ldjam.com/events/ludum-dare/52/harvest-bot Making Of video:https://www.youtube.com/watch?v=1B7P3mS4_i4 Ideas for future (if want to extend this later..)– More features (sensor to direction, shoot, enemies, destroyable objects )– Play against other bots in same […]
12
2022
Painting with Compute Shader
Finally tested compute shaders for drawing into render texture:
27
2022
Draw Pseudo Hilbert Curve
Followed this tutorial: The Coding Trainhttps://www.youtube.com/watch?v=dSK-MW-zuAc my source code:https://gist.github.com/unitycoder/f4ea8071a5d6ccceef210550bc5f0cf3
4
2022
Unity Stable Diffusion plugin
..for fetching images from InvokeAI web service (locally), inside unity (editorwindow). You can generate images, seamless textures or use initial image to “improve” your programmer art! Note currently only support version InvokeAI 1.14.1 Project:https://github.com/unitycoder/UnityInvokeAI Making of videos:Full struggle recorded in videos, https://www.youtube.com/watch?v=MKME8r9T-Ns&list=PLi5GhVWoWyw6O4OShX9MqFaYIIVtBYLUB
Recent posts
- 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)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)