Unity
12 entriesProjects, notes, and discoveries filed under #unity.
In this collection
Latest updates firstUnity - Changing Shader Properties From Scripts
Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).
Unity - Cloth Simulation
Add a Cloth component to the GameObject that hosts the mesh renderer you want to make “clothy”. It will automatically swap out the mesh renderer for a Skinned Mesh Renderer. At…
Unity - Coroutines
To exit a coroutine early, you can use yield break;, but if you just want to exit a loop or something, but still allow the coroutine to continue executing beyond the inner scope…
Unity - Lightmap Baking
Some recommend not using baked lighting unless in very small or indoor scenes. Assuming the render budget allows, real-time lighting tends to look better (at least in Unity), an…
Unity - Lightmap Modes
Because all shadows from Mixed Lights are real-time in Baked Indirect Lighting Mode, this can impact performance. You can reduce this impact by using the Shadow Distance propert…
Unity - Orbbec Cannot Open Device Error
k4a cannot open device (error) <unknown assembly> type:<unknown type> member:(null)
Unity - Orbbec Dependencies
Generally speaking, installing Azure Kinect SDK 1.4.1.exe and Azure Kinect Body Tracking SDK 1.1.2.msi should be sufficient to get the Orbbec Femto Mega up and running, but make…
Unity - Orbbec Model Files (.onnx)
These are the critical files for skeleton tracking to work:
Unity - Orbbec Project Setup
Use the USOPC project as a starting point. For skeleton tracking, you should only need what’s in the Plugins/ folder, and any relevant scripts. The documentation from Orbbec is…
Unity - Using Lerp() Properly
Make sure to actually use time in the correct way to interpolate between two values with Lerp() in Unity, i.e. don’t just throw Time.deltaTime in for the time parameter.
Unity Licensing Server
The licensing server itself lives on it’s own, usually at a high-level directory:
Skeleton Tracking in Unity
Microsoft originally made the Kinect during the Xbox 360 era, which is, unfortunately, a really long time ago at this point. They sold the Kinect and its successors until 2017 a…