lens
Can anyone please explain for me do to caret lenses if i have click on the screen the picture change. like I have a multiply picture that i need to put in one lenses that if the people click on the screen the pictures change or anything i put get change can anyone explain how I can do that thank you .
Hey deema1889
Just use this script from Benslenses of this youtube tutorial :
https://www.youtube.com/watch?v=5-nBZzmEbNk
And instead of post effects as Ben shows in the tutorial , just use your images.
Here is the script to copy :
// -----JS CODE-----
// @input SceneObject[] obj
var count = 0;
script.obj[0].enabled = true;
for (var i = 1; i < script.obj.length; i++)
{
script.obj[i].enabled = false;
}
function onTapped(eventData)
{
count++
for (var i = 0; i < script.obj.length; i++)
{
if (count == i)
{
script.obj[i].enabled = true;
}
else
{
script.obj[i].enabled = false;
}
}
if (count == script.obj.length)
{
count = 0;
script.obj[0].enabled = true;
}
}
var event = script.createEvent("TapEvent");
event.bind(onTapped);
If you have any questions left, feel free to ask :D
Cheers,
SirQu3ntin