coding

  1. SalmaBend2003

    dynamically generate intermediate nodes

    I'm trying to create a dynamic structure in Unity using prefab GameObjects and `LineRenderer`. For now, I manually place the nodes and connect them using multiple LineRenderers (as shown in the script below), but this approach doesn't scale and is not flexible. My goal is to: 1. Automatically...
  2. I

    Tip How to capture a variable and not to shoot yourself in the foot

    Back in 2005, with the release of C# 2.0 standard we got a possibility to pass a variable to the body of an anonymous delegate by capturing it from the current context. In 2008 the C# 3.0 brought us lambdas, user anonymous classes, LINQ requests and much more. Now it January, 2017 and the...
Back
Top Bottom