Making an Attachable Prop: Difference between revisions

From VR Wiki
(a)
m (Oops)
Line 16: Line 16:
# Set the ''Attachment Type'' to ''Bone''.
# Set the ''Attachment Type'' to ''Bone''.
# Set ''Bone Type'' to ''Head''.
# Set ''Bone Type'' to ''Head''.
# Set ''Interaction Distance'' to something like 0.5.


You're done!
You're done!

Revision as of 00:58, 2 August 2022

ChilloutVR props are useful, but sometimes you want to attach them to your avatar for some reason. A simple example that this tutorial will use is a hat that one wants attached to your avatar's head.

Warning: CVR has just moved to Unity 2021, so your stuff may be broken. -- 11:24, 26 July 2023 (UTC)(Edit)


Prerequisites

  • Knowledge on how to manipulate GameObjects in the Scene Hierarchy
  • Knowledge on how to manipulate Components in a GameObject
  • Knowledge on how to make a basic prop.

Creating a Simple Attachable Prop

  1. Make a simple cube primitive in the scene. This will be our hat.
  2. Make the cube a prop.
  3. Add a CVR Attachment component to the cube.
  4. Set the Attachment Type to Bone.
  5. Set Bone Type to Head.
  6. Set Interaction Distance to something like 0.5.

You're done!