Skip to content

Commit

Permalink
他の人からボタンを見えないようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
hantabaru1014 committed Aug 3, 2022
1 parent 7fec828 commit 6495fa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RemoveNABlendshapes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static void Postfix(SkinnedMeshRenderer __instance, UIBuilder ui)
{
var removeBtn = ui.Button("Remove N/A Blendshapes");
removeBtn.LocalPressed += (IButton btn, ButtonEventData data) => RemoveNAshapes(__instance);
removeBtn.Slot.ActiveSelf_Field.OverrideForUser(removeBtn.LocalUser, true).Default.Value = false; // Make the button invisible for other users
}

private static void RemoveNAshapes(SkinnedMeshRenderer instance)
Expand Down

0 comments on commit 6495fa2

Please sign in to comment.