215 followers 0 articles/week
Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI

Testing about creating Scene Preview image from Scene Camera view, when scene is saved and then display that preview image when scene is selected! Resources: – https://docs.unity3d.com/ScriptReference/SceneManagement.EditorSceneManager-sceneSaved.html – https://docs.unity3d.com/ScriptReference/Editor.OnPreviewGUI.html Forum thread:...

Sun Apr 7, 2024 23:27
webgl+javascript TTS

Quick TTS test, uses jslib to call js SpeechSynthesisUtterance. sample project: https://github.com/unitycoder/webgl-js-TTS webgl demo: https://unitycoder.com/upload/demos/webglTTSjs/ References: https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html

Mon Mar 18, 2024 20:54
Using Moonsharp (LUA) + Unity Webgl

Moonsharp has some issues in webgl builds, but here’s working repo and some notes. REPO ( unity 2022.3.7f1 ) – https://github.com/unitycoder/MoonSharpWebGL WEBGL DEMO – https://unitycoder.com/upload/demos/moonsharpwebgl/ NOTES – You need to grab this webgl fix: https://github.com/moonsharp-devs/moonsharp/pull/146 – You need...

Wed Mar 13, 2024 16:46
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...

Sat Mar 9, 2024 23:28
Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)

Steps Customize your project template package.json file (using 7zip in Administrator mode) Project templates are inside Unity editor installation folder (like: 2022_3\Editor\Data\Resources\PackageManager\ProjectTemplates\) Example package.json here to add video (and hide default preview image) https://gist.github.com/unitycoder/cc472faec83f4941d032e2010ce889ea...

Wed Mar 6, 2024 12:34
Check if point is inside polygon 2D (using line intersection)

Info: “Each time the ray crossed the boundary of the polygon, it would cross from the interior to the exterior, or vice versa. Therefore, the test point is on the interior if, and only if, the ray crosses the boundary an odd number of times“ https://www.topcoder.com/thrive/articles/Geometry%20Concepts%20part%203:%20Using%20Geometry%20in%20Topcoder%20Problems...

Thu Feb 15, 2024 09:39

Build your own newsfeed

Ready to give it a go?
Start a 14-day trial, no credit card required.

Create account