Help scripting
I'm kind of stumped. I'm trying to create a wand that will shoot a spell when tapped. I am used to using the Unity game engine and usually when I want to make things appear I just make a prefab of it, delete it from the hierarchy and then reference it in the script and call it to appear. However I had no luck fining anything on how to do that in Snapchat Lens Studio. I looked through the API and saw nothing about calling in an an object only destroying one. If anyone has any ideas on what to do or any script help that would be helpful! Thanks!
hey fella, yes some bits of unity aren't ported here as 1:1
I have been using something on the lines
script.object1.enabled = false; for destory and true for enabled and then use a function to call the animator to run the animation
You could also for this just layer up the animation in say cinema 4d and export it as FBX and
I would suggest lookin at the animate on tap tutorial
Hey Malachite,
Have you checked out this forum post on First Person Attached Objects yet? Let me know if you have any questions about it.
Cheers,
Kaitlyn