Version: 5.5
public static void BeginChangeCheck ();

説明

BeginChangeCheck と EndChangeCheck で囲んだ GUI グループ内の GUI 要素でなんらかの変更がなされたときにアクションを起こすために使用されます。

When needing to check if GUI.changed is set to true inside a block of code, wrap the code inside BeginChangeCheck () and EndChangeCheck () like this:

EditorGUI.BeginChangeCheck ();

// Block of code with controls // that may set GUI.changed to true.

if (EditorGUI.EndChangeCheck ()) { // Code to execute if GUI.changed // was set to true inside the block of code above. }

GUI.changed がブロック内で True に設定されている場合、 ndChangeCheck は True を返すだけですが、内部で True に設定した場合と最初から True だった場合の両方でGUIchanged はその後 True になります。