Skip to content

Commit

Permalink
feat(Editor): Recommend four bones for skinning in project setup tool
Browse files Browse the repository at this point in the history
Summary: We should recommend four bones for skinning as that less bones causes problems for most characters.

Reviewed By: andkim-meta

Differential Revision: D57500407

fbshipit-source-id: 1cf35f11401d17124ce9113e343ddc7cc4d1865d
  • Loading branch information
sohailshafiiWk authored and facebook-github-bot committed May 17, 2024
1 parent 0963b46 commit db7a615
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Editor/Utils/OVRProjectSetupMovementSDKSamples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ internal static class OVRProjectSetupMovementSDKSamplesTasks

static OVRProjectSetupMovementSDKSamplesTasks()
{
// Skin weights settings.
OVRProjectSetup.AddTask(
level: OVRProjectSetup.TaskLevel.Recommended,
group: _group,
platform: BuildTargetGroup.Android,
isDone: group => QualitySettings.skinWeights == SkinWeights.FourBones,
message: "You should use four skin weights to avoid skinning problems",
fix: group =>
{
QualitySettings.skinWeights = SkinWeights.FourBones;
},
fixMessage: "Set quality settings skin weights to four bones."
);

// Body tracking settings.
OVRProjectSetup.AddTask(
level: OVRProjectSetup.TaskLevel.Required,
Expand Down

0 comments on commit db7a615

Please sign in to comment.