Force Record to start animations, audio etc
This is little script to make sure your lens gets the attention and share it needs by reminding the user to record..
add to your controller object as lens on
//js script
// @input Component.SpriteVisual billboardSprite
if (global.scene.isRecording()== true) {
script.billboardSprite.enabled = false;
animation();
} else {
script.billboardSprite.enabled = true;
}
//use this to build what you need
function animation(){
print("function play ");
}
Hey, new to this. when I try and use the script I'm receiving this error.
TypeError: cannot write property 'enabled' of undefined
at [anon] (Record:20) preventsyield
Any way to resolve this?
Thanks!
Hey Patrick, nice script!
Oxtail, you probably didn't set the billboard sprite in the inspector. Select the object you have the script added to and then in the inspector, make sure the field labeled "Billboard Sprite" is not set to None. Once you throw a Billboard at the script, it should work as intended.
Hi Travis, I have tried the solution you have given, but have had no such luck in starting my animations during the recording process. It will just keep the animated sprites still.
Any more advice would be appreciated.
Thanks!