Show/Hide UI Panel for Snap Camera
Hello,
So I am creating a Hair/Eyes Color Picker targeted for the Snap Camera platform.
I am able to disable the UI Panel with Behavior Script on Tap. But I am not able to enable it back when I tap a second time.
My second option was to create a Custom Hint telling users to Tap To Disable Panel, but I wasn't able to do that either.
I would prefer to be able to show/hide the UI Panel on just a Tap. I am making this filter ideally for the Snap Camera. Being able to quickly change the hair and eyes colors without having to reset the filter everytime they want to do that.
This is my filter: https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=3d7fee4986fb40f4a2444287979e9c34&metadata=01
Thank you
hi William Blonde
Nice work.
as i see you have an issue of dealing with the UI
you can simply use behavior script to show and hide UI by taping Screen
also you have to use the behavior script to hide the UI's when user start recording
or
you can use some coding to hide it
use this script and make sure to select Frame Update
// @input SceneObject[] obj
if (global.scene.isRecording())
{
if (script.isVisible === undefined || script.isVisible === true)
{
for (var i = 0;i < script.obj.length; i++)
{
script.obj[i].enabled = false ;
}
}
}
if you didn't figure it out just let us know .
we will be happy to help you
Cheers