


TweenTransform is for moving, rotating, or scaling objects.The tween type you use will depend entirely on what you want to do. Lens Studio gives us a few different tween types to use in our lenses. You don't need to do anything else, simply move it to the top of your scene hierarchy. Each tween script you add to your lens relies on the TweenManager, so before any of those can run the TweenManager needs to be running. When a lens starts up, Lens Studio (or Snapchat when it is running on your phone) will start at the top and run down through everything. Then, and this is important, click and drag the TweenManager all the way to the top of your object list. Expand the TweenManager object and delete the examples. You'll also notice a bunch of objects and text added to your scene. We do this through the Objects Panel and can find the Tween Manager either by searching or by finding the Helper Scripts section.ĭepending on what you have selected in your scene, the Tween Manager may be added at the top level or nested under another object. All you need to do is configure a few settings and you are good to go! Adding the tween manager scriptīefore we can start using the tween script, we need to import the Tween Manager.
#FACE TRIGGER ANIMATION DELAY LENS STUDIO CODE#
Now don't be intimidated by the word "script" - you don't need to write any code to use the tween script.

If you need to animate anything inside Lens Studio - position, rotation, scale, opacity, etc.
