There are two Prefabs included with the Fireworks. The Fireworks Prefab and the Lighter Prefab used to light the Fireworks.

Scene Setup

Find the Prefabs in the ‘RuneFox/Fireworks/_Prefabs’ folder and drag them onto your avatar so that they become child objects of your avatar.

If you need to scale the prefabs only scale the Parent Gameobject. Try not to scale any of the gameobjects inside the prefabs as that may result in undefined behavior.

Right Click on the Prefabs and select Prefab→Unpack. We need to do this in order to drag the objects out of the prefab onto the avatar’s armature later.

image.png

Setting up the Target Constraints

Lighter

Expand your avatar’s armature and navigate to the Left and Right Hand bones. These are sometimes labeled as wrist bones instead of hand bones.

Drag the left and right hand targets so that they’re children of the hand bones.

image.png

Move the hand target objects in the scene to reposition the placeholder lighter meshes so that they’re in the palm of your avatar’s hand.

image.png

For the Holster, drag it into the armature where you want the holster parented, in my case I chose the spine as I’m attaching it near there.

Move the Holster object to move the lighter around until it is in the place you want it. Make sure that it is in an area that is easily accessible as you need to put your hands in contacts on the holster to equip/unequip the lighter.

image.png

Fireworks

Repeat the process above for the fireworks.

The Right and Left Hand Targets have 4 Target objects each, 1 for each firework. Move the Left and Right hand targets to each hand, then move the individual targets in each hand for fine tuning. You can hide the individual meshes by disabling the ‘Placeholder’ gameobjects under each individual target.

Example Hand Placement Screenshots