How to draw disc in scene using c#?

I want this:

I need a circle around my object in the scene view NOT the game.I want it exactly like the picture here.
I’m using c# and the only code available on the page is in js

could someone show me an example of this working in c#?

do i need to have two scripts going?

on the page linked, if you look in the top right corner there is a toggle to switch languages. this should give you the exact results with the c# code.

that still gives js example, at least I believe it is, since it says function and doesn’t use new to define the Vector3

Any reason you can’t just use a javascript script? I understand it may not be ideal but it looks like at this point it may be your only option.