Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.79 KB

File metadata and controls

34 lines (28 loc) · 1.79 KB

ViewPositionConstraint

Very simple Unity C# script that automatically syncs avatar's view position with avatar Head bone scale.

YouTube Video

How to use View Position Constraint YouTube video

What does it do?

Once the constraint is activated, it will try to sync your avatar's view position property with your avatar's head bone.

How to use?

  1. Import .unitypackage to your project.

Using it on your avatar's head bone

  1. Find your avatar's Head bone.
  2. Add View Position Constraint via "Add Component" button.
  3. Make sure your current view position is well-aligned with your needs.
  4. Press Activate to let it automatically configure the current offset & activate.
  5. You're now free to scale up/down the head bone. You can even scale up/down parent bones such as neck, chest, hips, or more.

Using it on separate GameObject inside head bone

  1. Find your desired GameObject.
  2. Add View Position Constraint via "Add Component" button.
  3. Make sure your current view position is well-aligned with your needs.
  4. Press Zero to simply activate it without calculating offset.
  5. You're now free adjust the object's position.

Notice

This is EditorOnly script. This is not an actual constraint that are related with Unity Constraints and VRC Constraints, but rather a simple utility that can automate the view position relocation when you've rescaled your avatar's body parts. This will not be counted as an actual constraint in VRChat SDK build window, since this is an EditorOnly constraint.

Requirements

  • Unity 2022 3.22f1
  • VRChat Avatar SDK (Use VRChat Creator Companion)

Download

Download latest .unitypackage file from here