csharp

Probability distribution sampling in C# using StatDist and Troschuetz.Random
StatDist + TRandom

Probability distribution sampling in C# using StatDist and Troschuetz.Random

Learn how to sample various common probability distributions in C#

unity-protips

Snippet: simple Unity comment component
Comment.cs

Snippet: simple Unity comment component

An easy way to document GameObjects. Just add a component and type away.

Pump Up The Volume: Writing custom Volume Components in Unity
VolumeComponent

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

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
UPM

Unity Package Cheatsheet

A handy reference of all UPM packages and related links

Ray-mesh intersection in Unity Editor
IntersectRayMesh

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
RequiresConstantRepaint

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
IncrementUpdateCount

Notifying Unity about texture modifications

Use Texture.IncrementUpdateCount() to let Unity know that a texture has changed

Using Unity asset labels
Asset labels

Using Unity asset labels

Don’t get your hopes up