Skip to content

Commit

Permalink
Fix SimpleGauge
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume committed Jan 12, 2025
1 parent 0a7629a commit 0d1680e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packages/MinimalUtility/Runtime/UGUI/SimpleGauge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ namespace MinimalUtility.UGUI
/// <summary>
/// <see cref="RectMask2D"/>を継承利用したシンプルで綺麗なゲージ表示.
/// </summary>
[RequireComponent(typeof(MaskableGraphic))]
public class SimpleGauge : RectMask2D
{
[FormerlySerializedAs("mode")]
Expand Down Expand Up @@ -48,8 +47,9 @@ public float value
}

/// <summary>
/// ゲージの表示に使用する<see cref="MaskableGraphic"/>.
/// 本ゲージと一緒にアタッチされている<see cref="MaskableGraphic"/>.
/// </summary>
/// <remarks>なければnullを返す.</remarks>
public MaskableGraphic graphic => _graphic == null ? _graphic = this.SafeGetComponent<MaskableGraphic>() : _graphic;

/// <inheritdoc/>
Expand Down

0 comments on commit 0d1680e

Please sign in to comment.