Unsure of why draw ray is not drawing ingame

Hi I'm trying to draw ray in game with a fixed duration to a specific camera can someone help me under stand what I'm doing wrong here?

Capture

Hi

That

draw.WithDuration(1f).Dispose();

call is technically valid, but doesn’t make sense. It would look like this:

using (draw.WithDuration(1f)) {
    draw.Ray(...);
}

You also need to dispose the builder itself at the end:

draw.Dispose();

Capture

Got it thank you I tried the way you motioned but I was disposing within the using scope when it needed to be after it, three hours of being dumb. Thank you for the help.

1 Like