I have completed my lens and everything runs properly in the preview and when I push it, but I cannot publish it because of the following error:
16:59:08 Error: Wrong argument number count, expected 1, got 2
at [anon] () native strict preventsyield
at onTap (BillboardSprite:34) preventsyield
I am using Travis Chen's Billboard Sprite script (in an empty object in the objects panel) which turns on a billboard with a video animation when tapped (https://lensstudio.zendesk.com/hc/en-us/community/posts/360000035023-Tap-to-Trigger-Billboard-and-Sound). Line 34 is "control.play(1, 0.0)" in the following:
// Play animation
var control = script.billboardSprite.getMaterial(0).getPass(0).baseTex.control;
if( control && control.play )
On the sprite itself, I have the following script to prompt the video texture on the billboard to only play once:
// -----JS CODE-----
// Plays a video texture
//@input Asset.Texture movie
var loops = 1;
var provider = script.movie.control;
I also have a tweenalpha on that billboard which is set to play automatically (no loop). I know I have everything assigned correctly in the inspector, since everything runs perfectly, so I assume it may just be an issue with the BillboardSprite code - which I haven't edited in any way.
I am willing to privately share my file if necessary! Thanks!