tagged #unity
Snippet: simple Unity comment component
An easy way to document GameObjects. Just add a component and type away.
Snippet: C# version of SquirrelNoise5
SquirrelNoise5High-performance stateless noise/hash functions written by Squirrel Eiserloh. Useful for procedural generation and noise generation.
Pump Up The Volume: Writing custom Volume Components in Unity
You can create custom Volume Components to find a blended set of parameters determined by the camera’s position within the scene.
Quick fix: Transform 'X' not found in HumanDescription
Transform 'X' not found in HumanDescriptionWhen you’re attaching a GameObject to a bone of an animated character using the Humanoid rig you might encounter this error (Unity 2021.3.2f1).
Detours: redirecting C# methods at runtime
Detours are a way to replace the implementation of a C# method. Basically, you take a method (typically from some assembly you don’t have the source for) and overwrite it…
Unity Package Cheatsheet
A handy reference of all UPM packages and related links
Ray-mesh intersection in Unity Editor
Unity has a built-in IntersectRayMesh function, but it’s internal and editor-only… here’s how you use it.
Forcing Unity inspectors to redraw every frame
Use Editor.RequiresConstantRepaint to make sure your custom inspector doesn’t skip any updates
Notifying Unity about texture modifications
Use Texture.IncrementUpdateCount() to let Unity know that a texture has changed
Using Unity asset labels
Don’t get your hopes up
Calling managed code from Burst
Find out how to call Mono code from Burst-compiled jobs and functions
tagged #csharp
Snippet: C# version of SquirrelNoise5
SquirrelNoise5High-performance stateless noise/hash functions written by Squirrel Eiserloh. Useful for procedural generation and noise generation.
Pump Up The Volume: Writing custom Volume Components in Unity
You can create custom Volume Components to find a blended set of parameters determined by the camera’s position within the scene.
Detours: redirecting C# methods at runtime
Detours are a way to replace the implementation of a C# method. Basically, you take a method (typically from some assembly you don’t have the source for) and overwrite it…
Ray-mesh intersection in Unity Editor
Unity has a built-in IntersectRayMesh function, but it’s internal and editor-only… here’s how you use it.
Forcing Unity inspectors to redraw every frame
Use Editor.RequiresConstantRepaint to make sure your custom inspector doesn’t skip any updates
Notifying Unity about texture modifications
Use Texture.IncrementUpdateCount() to let Unity know that a texture has changed
Using Unity asset labels
Don’t get your hopes up
Probability distribution sampling in C# using StatDist and Troschuetz.Random
Learn how to sample various common probability distributions in C#
Calling managed code from Burst
Find out how to call Mono code from Burst-compiled jobs and functions
tagged #dots
Calling managed code from Burst
Find out how to call Mono code from Burst-compiled jobs and functions
tagged #git
Snippet: partial repository cloning w/ git sparse-checkout
Use git sparse-checkout and git clone --filter to clone only part of a large repository
tagged #ffmpeg
Snippet: quickly re-encoding video files w/ ffmpeg on Windows
Quick .bat script to re-encode yt-dlp‘d video files to H.264
tagged #hdrp
Pump Up The Volume: Writing custom Volume Components in Unity
You can create custom Volume Components to find a blended set of parameters determined by the camera’s position within the scene.
tagged #urp
Pump Up The Volume: Writing custom Volume Components in Unity
You can create custom Volume Components to find a blended set of parameters determined by the camera’s position within the scene.
tagged #chatgpt
Snippet: Wider ChatGPT conversation window
Your ticket to an immersive sensible ChatGPT experience.