Launched today: Scripts 2.0


#1

Today we’ve launched our Scripts 2.0 update. You can read all about it here. Also, see this awesome little video of live code hot swapping working across 4 mobile devices!

(by the way, yes, that is an iPhone4S!)

New projects you create from today will use the new script system, but your existing projects will not change and will carry on using the legacy scripting system. You can also create a new project with legacy scripts enabled.

Unfortunately, it’s not possible to migrate a project from the old system to the new one as it would be a complicated process to ensure you didn’t lose any exposed attribute data. Especially automatically changing javascript files.

However, some awesome new features in the new scripting system: live code hot-swap, script concatenation/minification, real-time collaboration on code files, put scripts in folder(!), better error handling.

Let us know what you think.


☑ Where is Code tab in Dashboard?
#2

Awesome, have been waiting for this new scripting workflow for soo long! :smiley:
Playing with all new features at the moment.

Any reason why displayName was removed from attribute options?


#3

Awesome, cant wait to try it !


#4

displayName is now title. Here’s more info:

http://developer.playcanvas.com/en/api/pc.ScriptAttributes.html


#5

Ah thank you, somehow missed that entry in Scripting Reference


#6

Has anybody gotten the VR project to work with this?


#7

Yep, if you just create new project using VR Starter Kit, it already will be new system.


#8

We just deployed the new VR starter kit a few minutes ago so try forking it again :slight_smile:


#9

Yeah, looks like they’ve got it updated now. Nice!


#10

Just got chance to try this, very impressive and useful! well done!