Connect Color UI Slider to Hair color? Getting Error.
Hey Lens Community,
Does anybody know how to connect the color slider from the UI slider from Lens studio with the hair color? I have read and followed the guide Link But I think this is an old instruction.
I'm getting an error when I followed instructions step by step.
14:49:22 [Scenarium] ReferenceError: identifier 'enable' undefined
at [anon] (Hair Coloring/Scripts/HairColorController.js:23)
at [anon] (Custom Script.js:5)
at [anon] (UI Resources/Resources/Scripts/UIPanel.js:593)
at [anon] (UI Resources/Resources/Scripts/UIPanel.js:535)
at updateColor (UI Resources/Resources/Scripts/UIColorPicker.js:570)
at setLocationOnPalette (UI Resources/Resources/Scripts/UIColorPicker.js:611)
at updatePickedLocationFromTouch (UI Resources/Resources/Scripts/UIColorPicker.js:588)
at onTouchStart (UI Resources/Resources/Scripts/UIColorPicker.js:490)
at invokeTouchStartEvents (UI Resources/Resources/Scripts/UIPanel.js:319)
at onTouchStart (UI Resources/Resources/Scripts/UIPanel.js:296) preventsyield
[...]
Hi, iamhaamoo
You might want to check script execution order (if you are calling function from some place make sure it has been initialized)
Since it's hard to guess what could go wrong attaching my scene hierarchy and scripts, hope this helps. Starting from default Hair Template :
1.
2. Added UI widgets from Asset Library Made sure my sliders are below the Hair Controller
3. Set up callbacks on Sliders:
This should work! Attaching completed project as well
Best
Olha
Thanks a lot <3
Hello, I need to know can I create and sell the Snapchat lenses on different platforms? I have seen my websites which is promoting different websites. I have contacted a website called Northell, they are willing to publish and promote my created lenses.
Your suggestion will be highly appreciated.