QvPen Avatar Follow System

QvPen で描いた線が,アバターについてくる.

Lines drawn with QvPen follow the avatar.

VRChat ワールド向けの QvPen 拡張ギミックです.アバターの近くで描いた線(文字や落書き)を,そのアバターの最寄りのボーンに追従させ,全プレイヤーへ同期します.Prefab を 1 個置くだけで動作します.

A QvPen extension for VRChat worlds. Lines (writing, doodles) drawn near an avatar attach to that avatar's nearest bone and are synced to all players. Just place one prefab in your scene.

VCC に追加Add to VCC

ボタンが反応しない場合は,以下の URL を VCC / ALCOM の「Add Repository」に貼り付けてください.

If the button does nothing, paste this URL into "Add Repository" in VCC / ALCOM.

特徴Features

導入前に サンプルワールド で実際の動作を試せます.

You can try it in the sample world before installing.

導入方法Installation

必要なものRequirements

VCC で導入するInstall with VCC

  1. QvPen をワールドに導入し,ペンで描ける状態にしておきます.
  2. 上の 「VCC に追加」 ボタンを押し,開いた VCC で I Understand, Add Repository を選びます.
  3. VCC でワールドのプロジェクトの Manage Project を開き,QvPen Avatar Follow System の「+」を押して追加します.
  4. Unity でプロジェクトを開き,Packages/QvPen Avatar Follow System/Prefab にある QvPen_AvatarFollowSystem.prefab を Hierarchy にドラッグ&ドロップします.
  5. ワールドをビルド / アップロードします.
  1. Install QvPen into your world and make sure you can draw with a pen.
  2. Press "Add to VCC" above, and choose I Understand, Add Repository in VCC.
  3. In VCC, open Manage Project for your world project and press "+" next to QvPen Avatar Follow System.
  4. Open the project in Unity and drag QvPen_AvatarFollowSystem.prefab from Packages/QvPen Avatar Follow System/Prefab into the Hierarchy.
  5. Build / upload your world.

Prefab はシーンに 1 個だけ 配置し,常に有効にしておいてください(実行中に無効化しない).配置場所はどこでも構いません.

Place exactly one instance in the scene and keep it active at all times. It can be placed anywhere.

Booth 版(unitypackage)から移行するMigrating from the Booth unitypackage

VCC から追加すると,unitypackage で導入した Assets/TateshinaSystems/QvPen_AvatarFollowSystem フォルダは自動で削除され,パッケージ版に置き換わります.シーンに配置済みの Prefab と設定値はそのまま引き継がれます.スクリプトを改変している場合は,事前にバックアップを取ってください.

Adding the package through VCC removes the Assets/TateshinaSystems/QvPen_AvatarFollowSystem folder imported from the unitypackage and replaces it with the package. Prefabs already placed in your scenes keep working with their settings. If you modified the script, back it up first.

VCC を使わずに導入するInstalling without VCC

Booth から unitypackage を入手し,プロジェクトへインポートしてください.以降の手順は同じです.

Get the unitypackage from Booth and import it into your project. The remaining steps are the same.

設定項目Settings

原則,初期設定のまま変更する必要はありません.

The defaults work for most worlds.

項目Field 既定値Default 説明Description
Attach Distance 0.2 ボーンからこの距離(m)以内に描き終えた線が追従対象になります.大きいほど付きやすくなります. A line finished within this distance (m) of a bone attaches to it. Larger values attach more easily.
Include Local Player ON 描いた本人のボーンも追従対象に含めるかどうか. Whether the drawer's own bones are also attach targets.
Max Records 511 同時に追従できる最大本数.超えると古いものから切り離します.1 本あたり 72 byte の同期帯域を使うため,VRChat の同期上限(約 49KB)に収まる 680 本程度までが目安です. Maximum number of lines attached at once; the oldest are detached beyond it. Each line uses 72 bytes of sync data, so about 680 is the practical maximum under VRChat's sync limit (about 49 KB).

制限事項Limitations