Setup Hair for MA
- ダウンロード商品¥ 0





髪型のプレハブを右クリックして「Setup Hair or Outfit」を選ぶと、MA Bone Proxyでアバターの頭に取り付けられます。 衣装のプレハブを選ぶと、Modular AvatarのSetup Outfitで設定されます。 NeckまたはHeadボーンを縮小したアバターでは、「スケールを合わせる」も有効になります。 髪型のPhysBoneには、届く範囲の胴体・上腕のコライダーも追加されます。 アバターのルートを右クリックして「Setup Mesh Settings」を選ぶと、BodyメッシュのAnchor Override・ルートボーンでMA Mesh Settingsが追加されます。 헤어 프리팹을 우클릭해 "Setup Hair or Outfit"을 선택하면, MA Bone Proxy로 아바타의 머리에 붙습니다. 의상 프리팹을 선택하면 Modular Avatar의 Setup Outfit으로 설정됩니다. Neck이나 Head 본을 줄인 아바타에서는 "스케일 맞춤"도 활성화됩니다. 헤어 PhysBone에는 닿는 범위의 몸통·위팔 콜라이더도 추가됩니다. 아바타 루트를 우클릭해 "Setup Mesh Settings"를 선택하면, Body 메시의 Anchor Override·루트 본으로 MA Mesh Settings가 추가됩니다. Right-click a hair prefab and select "Setup Hair or Outfit" to attach it to your avatar's head with MA Bone Proxy. For an outfit prefab, Modular Avatar's Setup Outfit runs instead. On avatars with a scaled-down Neck or Head bone, "Match scale" is enabled too. The hair's PhysBones also get the torso and upper-arm colliders within their reach. Right-click the avatar root and select "Setup Mesh Settings" to add MA Mesh Settings with the Body mesh's Anchor Override and Root Bone.
Requirements
- Unity 2022.3.22f1 - Modular Avatar https://modular-avatar.nadena.dev/
Installation
- VCC/ALCOM: https://koz39.github.io/vpm-listing/ で「Add to VCC」を押してリポジトリを追加した後、プロジェクトの管理画面でSetup Hair for MAパッケージを追加します。 - unitypackage:zip内のunitypackageをプロジェクトにインポートします。 - VCC/ALCOM: https://koz39.github.io/vpm-listing/ 에서 "Add to VCC"로 저장소를 추가한 뒤, 프로젝트 관리에서 Setup Hair for MA 패키지를 추가합니다. - unitypackage: zip 안의 unitypackage를 프로젝트에 임포트합니다. - VCC/ALCOM: Click "Add to VCC" on https://koz39.github.io/vpm-listing/ to add the repository, then open your project's Manage page and add the Setup Hair for MA package. - unitypackage: Import the unitypackage from the zip into your project.
How to Use
Setup Hair or Outfit 1. 髪型または衣装のプレハブをアバターの中に配置します。 2. ヒエラルキーでプレハブを右クリックし、Modular Avatar > Setup Hair or Outfit を選択します。 3. 髪型のプレハブ内にあるHeadまたはHairボーンにMA Bone Proxyが追加され、髪型がアバターの頭に追従します。 - HeadまたはHairボーンがない場合は、Armature直下にPhysBoneコライダー以外のオブジェクトが1つだけであれば、そのオブジェクトを使用します。 - NeckまたはHeadボーンを縮小したアバターでは、「スケールを合わせる」が有効になります。 - 髪型のPhysBoneには、届く範囲の胴体・上腕のコライダーが追加されます。 - Armature直下のPhysBoneコライダーは、位置が最も近いアバターのボーンに追従します。 - Armature直下より深いボーンのMA Bone Proxyですでに頭に追従する髪型は、そのMA Bone Proxyをそのまま使用し、「スケールを合わせる」のみ上記と同様に有効になります。 4. 衣装のプレハブは、Modular AvatarのSetup Outfitで設定されます。 5. 設定できない髪型や頭に追従しないオブジェクトがある場合は、ウィンドウに表示されます。衣装のエラーはSetup Outfitのウィンドウに表示されます。 Setup Mesh Settings 1. ヒエラルキーでアバターのルートを右クリックし、Modular Avatar > Setup Mesh Settings を選択します。 2. アバターのルートにMA Mesh Settingsが追加され、Anchor OverrideとBoundsの設定モードがどちらも「設定」になります。 - Anchor Overrideとルートボーンは、アバターのルート直下にあるBodyメッシュの値を使用します。Bodyメッシュがないか値が空の場合はHipsを使用します。 - Boundsは、ルートボーンをBodyから取得し、BodyメッシュのExtentsがすべて1以上の場合はBodyメッシュの値を使用し、それ以外ではExtentsが1のデフォルト値のままになります。 - すでにMA Mesh Settingsがあるアバターはスキップします。 Setup Hair or Outfit 1. 헤어나 의상 프리팹을 아바타 안에 넣습니다. 2. 하이어라키에서 프리팹을 우클릭하고 Modular Avatar > Setup Hair or Outfit을 선택합니다. 3. 헤어 프리팹 안의 Head 또는 Hair 본에 MA Bone Proxy가 추가되어 헤어가 아바타의 머리를 따라갑니다. - Head 또는 Hair 본이 없으면, Armature 바로 아래에 PhysBone 콜라이더를 제외한 오브젝트가 하나뿐일 때 그 오브젝트를 사용합니다. - Neck이나 Head 본을 줄인 아바타에서는 "스케일 맞춤"이 활성화됩니다. - 헤어 PhysBone에는 닿는 범위의 몸통·위팔 콜라이더가 추가됩니다. - Armature 바로 아래의 PhysBone 콜라이더는 위치가 가장 가까운 아바타 본을 따라갑니다. - Armature 바로 아래보다 안쪽 본의 MA Bone Proxy로 이미 머리를 따라가는 헤어는 그 MA Bone Proxy를 그대로 사용하고, "스케일 맞춤"만 위와 같이 활성화됩니다. 4. 의상 프리팹은 Modular Avatar의 Setup Outfit으로 설정됩니다. 5. 설정할 수 없는 헤어나 머리를 따라가지 않는 오브젝트가 있으면 창에 표시됩니다. 의상 오류는 Setup Outfit 창에 표시됩니다. Setup Mesh Settings 1. 하이어라키에서 아바타 루트를 우클릭하고 Modular Avatar > Setup Mesh Settings를 선택합니다. 2. 아바타 루트에 MA Mesh Settings가 추가되고, Anchor Override 모드와 Bounds 설정 모드가 모두 "설정"이 됩니다. - Anchor Override와 루트 본은 아바타 루트 바로 아래 Body 메시의 값을 사용합니다. Body 메시가 없거나 값이 비어 있으면 Hips를 사용합니다. - Bounds는 루트 본을 Body에서 가져오고 Body 메시의 Extents가 모두 1 이상이면 Body 메시의 값을 사용하며, 그 외에는 Extents가 1인 기본값을 유지합니다. - MA Mesh Settings가 이미 있는 아바타는 건너뜁니다. Setup Hair or Outfit 1. Place the hair or outfit prefab inside your avatar. 2. Right-click the prefab in the Hierarchy and select Modular Avatar > Setup Hair or Outfit. 3. MA Bone Proxy is added to the Head or Hair bone inside the hair prefab, and the hair follows the avatar's head. - If there is no Head or Hair bone, the only object directly under the Armature other than PhysBone colliders is used. - On avatars with a scaled-down Neck or Head bone, "Match scale" is enabled. - The hair's PhysBones get the torso and upper-arm colliders within their reach. - PhysBone colliders directly under the Armature follow the avatar's nearest bone. - Hair that already follows the head through MA Bone Proxy on a bone deeper than directly under the Armature keeps that MA Bone Proxy, and only its "Match scale" is enabled as above. 4. Outfit prefabs are set up with Modular Avatar's Setup Outfit. 5. A window lists any hair that can't be set up and any objects that won't follow the head. Outfit errors appear in the Setup Outfit window. Setup Mesh Settings 1. Right-click the avatar root in the Hierarchy and select Modular Avatar > Setup Mesh Settings. 2. MA Mesh Settings is added to the avatar root, with both Anchor Override Mode and Bounds Override Mode set to "Set". - Anchor Override and Root Bone take the values of the Body mesh directly under the avatar root. Hips is used if there is no Body mesh or a value is empty. - Bounds take the Body mesh's value when Root Bone comes from Body and all of the Body mesh's extents are at least 1, and otherwise keep the default extents of 1. - Avatars that already have MA Mesh Settings are skipped.
Notes
- Modular Avatarの右クリックメニューに項目を追加する非公式ツールです。 - Humanoid Animatorがあるか、Armature直下にHipsボーンがあるオブジェクトは衣装として設定されます。 - Armature直下のオブジェクトのうち、アバターのボーンに追従するのはHeadまたはHairボーンとPhysBoneコライダーのみです。 - コライダーの自動追加は実験的な機能です。 - PhysBoneの長さを基準にコライダーを選ぶため、結果を確認し、必要に応じて手動で調整してください。 - すでにコライダーが設定されているPhysBoneはスキップします。 - アバターの既存のコライダーのみを使用し、作成はしないため、胴体・上腕のコライダーがないアバターには追加されません。 - 上部メニューの Tools > Setup Hair for MA > Auto-Add PhysBone Colliders (Experimental) で有効・無効を切り替えられます。 - Modular Avatar 우클릭 메뉴에 항목을 추가하는 비공식 도구입니다. - Humanoid Animator가 있거나 Armature 바로 아래에 Hips 본이 있는 오브젝트는 의상으로 설정됩니다. - Armature 바로 아래의 오브젝트 중 Head 또는 Hair 본과 PhysBone 콜라이더만 아바타의 본을 따라갑니다. - 콜라이더 자동 추가는 실험적인 기능입니다. - PhysBone 길이를 기준으로 콜라이더를 고르므로, 결과를 확인하고 필요하면 직접 조정해 주세요. - 콜라이더가 이미 지정된 PhysBone은 건너뜁니다. - 아바타의 기존 콜라이더만 사용하고 생성하지는 않으므로, 몸통·위팔 콜라이더가 없는 아바타에는 추가되지 않습니다. - 상단 메뉴의 Tools > Setup Hair for MA > Auto-Add PhysBone Colliders (Experimental)에서 활성화·비활성화할 수 있습니다. - This is an unofficial tool that adds items to the Modular Avatar right-click menu. - Objects with a Humanoid Animator or a Hips bone directly under the Armature are set up as outfits. - Of the objects directly under the Armature, only the Head or Hair bone and PhysBone colliders follow the avatar's bones. - Auto-adding colliders is experimental. - Colliders are picked by PhysBone length, so check the result and adjust them yourself if needed. - PhysBones that already have colliders are skipped. - Only the avatar's existing colliders are used and none are created, so nothing is added for avatars without torso or upper-arm colliders. - You can enable or disable it with Tools > Setup Hair for MA > Auto-Add PhysBone Colliders (Experimental) in the top menu.
Update History (Korean Only)
https://github.com/KOZ39/Setup-Hair-for-MA/blob/main/CHANGELOG.md





