Skip to content

Commit

Permalink
fix: Inspector上でApplySkinを行った際に値が即時反映されない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
pspkurara committed Nov 5, 2020
1 parent 6733a15 commit a8c0731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Packages/uGUI-Skinner/Editor/UISkinnerInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,13 @@ public override void OnInspectorGUI()
/// </summary>
private void ApplySkin()
{
serializedObject.ApplyModifiedProperties();
foreach (Object t in serializedObject.targetObjects)
{
UISkinner skinner = t as UISkinner;
skinner.SetSkin(Mathf.Clamp(currentStyleIndex, 0, skinLength - 1));
}
serializedObject.Update();
}

private void Cleanup()
Expand Down

0 comments on commit a8c0731

Please sign in to comment.