Hi,guys,I wonder if there is anyway to render a line in editor view space just like in game view?I can use:
this.app.renderLine(start,end,color);
in game view,is there any similar api I can use in editor view?
Hi,guys,I wonder if there is anyway to render a line in editor view space just like in game view?I can use:
this.app.renderLine(start,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:
Thanks Leonidas,It really help!