☑ 'xxxxx' Script Object is not predefined in any script object

Hi,

I placed a billboard script to two planes in the scene; https://playcanvas.com/editor/scene/478910.
However, the editor says that ‘xxxx’ Script Object is not predefined in any script object.

-ikel

I don’t get any error running your scene or looking at billboard script can u explain better?

You’ve mixed old script system pc.script.create with new one: pc.createScript.
You have to use new one only, old ones wont work.

@max, ah! my bad. That’s what happen when you ctrl c and ctrl v from tutorial without understanding.
Thanks.

Do you know where you found the old code? If we can update it to new format that would be good.

@dave, it’s here, I took it mindlessly from this tutorial; https://playcanvas.com/project/353938/overview/tutorial-billboards.