Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Assets/Scripts/Mask/MaskCutout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ public void SetRectangle(float centerX, float centerY, float width, float height
_subtractImage.sprite = _submaskRectangleSprite;

(width, height) = CalculateCenterSize(_subtractImage, width, height);
// これはコミットしたくない
SetupRectTransform(centerX, centerY, width, height);
ApplySoftnessRange(paddingRatio, gradientRatio);

// これはコミットしたい
Comment on lines +48 to +52

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SetRectangle 内に「これはコミットしたくない」という一時的なコメントが残っています。意図が不明でレビュー/保守のノイズになるため、不要なら削除するか、必要な意図なら具体的な TODO/理由に書き換えてください。

Suggested change
// これはコミットしたくない
SetupRectTransform(centerX, centerY, width, height);
ApplySoftnessRange(paddingRatio, gradientRatio);
// これはコミットしたい
SetupRectTransform(centerX, centerY, width, height);
ApplySoftnessRange(paddingRatio, gradientRatio);

Copilot uses AI. Check for mistakes.
var doodle = new GameObject("Doodle");
Comment on lines +51 to +53

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new GameObject("Doodle") が毎回生成されますが、親子付け/破棄/保持がなく、変数も未使用です。このままだと呼び出しのたびにヒエラルキーとメモリが増え続けるため、生成が不要なら削除し、必要なら適切な親へ transform.SetParent(...) し参照管理や破棄方針を明確にしてください。

Suggested change
// これはコミットしたい
var doodle = new GameObject("Doodle");

Copilot uses AI. Check for mistakes.
}

/// <summary>
Expand Down
Loading