How to render line in editor view space

Hi,guys,I wonder if there is anyway to render a line in editor view space just like in game view?I can use:,end,color);

in game view,is there any similar api I can use in editor view?

Hi @FBplus,

There isn’t an official API for executing code in editor but you can still do this. The editor runs a regular instance of the pc.Application class.

Take a look at the following framework:

1 Like

Thanks Leonidas,It really help! :grinning:

1 Like