ギフトボックスの仕掛け Gift Box Gimmick
- ダウンロード商品¥ 200




このプレハブを使えば、アバターにギフトボックスを装着でき、他のユーザーがそれを引っ張って開けると、中に入っているプレゼントが現れます! 使用方法: 「Present Prefab」プレハブをアバターのルートにドラッグ&ドロップします。 「Present Prefab」の階層を展開し(Present Prefab > Offset > Gift Contents > World Constraint > Container > Contents > Parent Gift to this Gameobject) 名前が明らかなGameObjectの中に、プレゼントを配置してください。 ゲーム内では、サークルメニューの「プレゼント」トグルをオンにしてください。 プレゼントを引っ張ると開きます。プレゼントはゲーム内のその場に固定されるため、プレイヤーはそれを観察することができます。 「プレゼント」トグルをオフにすると、プレハブがリセットされます。 注:このプレハブはアバターの右手に合わせて配置されており、手のひらを上に向けて持つことを想定しています。そのため、アバターに合わせて正しく位置合わせを行うには、ギフトやプレハブの位置や回転を調整する必要がある場合があります。プレハブの階層内にある「Offset」ゲームオブジェクトの位置を移動させることで、箱全体の位置を調整できます。Tポーズのアバターの手のひらのデフォルトの位置は下向きになっているため、プレハブ内に配置するギフトは逆さまになってしまう可能性があります。そのため、アップロードする前に必ず180度回転させてください。 This prefab allows you to put a gift box on your avatar which others can pull open to reveal your gift inside! How to use: Drag and drop the "Present Prefab" prefab onto your avatar root. Expand the present prefab's hierarchy to Present Prefab>Offset>Gift Contents>World Constraint>Container>Contents>Parent Gift to this Gameobject. Place your gift in the obviously named gameobject. In game, toggle on the Present Toggle in your circle menu. Pull the gift to open it. The gift will lock in place in the world so they can observe it. Untoggle the Present Toggle to reset the prefab. Note: the prefab is aligned to your avatar's right hand and is expected to be held palm up. This may mean you have to adjust the position or rotation of the gift or the prefab so it lines up correctly for your avatar. You can move the position of the Offset gameobject inside the prefab's hierarchy to position the whole box. It is likely the gift you place inside the prefab will be upside down as the default position of a t-posed avatar's palm is facing down so be sure to rotate it 180 degrees before uploading. I hope your friend enjoys their gift! Credits: World constraint prefab: https://github.com/VRLabs/World-Constraint Liltoon shader: https://github.com/lilxyzw/lilToon Machine Translation: https://www.deepl.com/




