The "Resize Spot When the Space Starts" snippet allows you to automatically resize objects (referred to as "spots") within your XR space as soon as the scene begins. This tutorial will guide you through setting up and customizing this snippet, enabling you to define the new size, duration, easing type, and looping behavior for the resize animation.
Purpose of the Snippet
The "Resize Spot When the Space Starts" snippet is designed to trigger a resize animation on selected spots in your XR scene when the space starts. This feature is ideal for scenarios where you want to draw attention to specific objects by changing their size, such as enlarging a key object in a virtual exhibit or dynamically resizing elements in a virtual environment.
Setting Up the Snippet
This is the Snippet Window with the various fields. We will go through these step by step.
1. Choose the Spot(s) to Be Resized
The first step is to select the spots that you want to resize when the space starts. This field allows you to choose one or more spots in your scene that will be resized. These could be any objects, such as 3D models or images, that you want to animate with a size change.
2. Set the New Size
Define the new scale for the selected spots by specifying scale factors along the X, Y, and Z axes. Enter the desired scale factors for the X, Y, and Z axes. For instance, setting 0.5
will reduce the spot to half its original size, 1
will keep it at the same size, and 2
will double its size.
3. Set the Animation Duration
Control how long the resize animation should take. Set the duration of the resize animation in seconds. This determines how quickly the spot transitions to its new size.
4. Choose an Easing Type for Smooth Transitions
Easing functions create smooth transitions in the animation, making the resize feel more natural. Select from a variety of easing options, such as Linear
, inBounce
, or inOutSine
, to control how the resizing accelerates and decelerates during the animation.
5. Configure Looping Behavior to Repeat the Animation
Decide if the resizing animation should repeat and how it should loop.
LoopType: Choose the looping behavior:
- None: No looping.
- Normal: Restarts the animation from the beginning each time.
- Incremental: Continues the resizing in the same direction.
- PingPong: Alternates the size, growing and shrinking in each loop.
6. Number of Playback
Specify how many times the animation should play. Use -1
for an infinite loop.
Conclusion
The "Resize Spot When the Space Starts" snippet in Fectar Studio is a powerful tool for adding dynamic size animations to objects in your VR scenes. By setting the new size, duration, easing, and looping options, you can create visually compelling interactions that automatically animate as soon as the space starts. Experiment with these settings to create the perfect resizing behavior for your XR scenes, making your experience more immersive and engaging.