Skip to content

Commit

Permalink
Register changes with Unity Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkehrwald authored and freezy committed Sep 8, 2024
1 parent 9c88ee1 commit bcfa405
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion VisualPinball.Engine.Mpf.Unity/Runtime/MpfGamelogicEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public string MachineFolder
}
set
{
if (value.Contains("StreamingAssets/"))
#if UNITY_EDITOR
Undo.RecordObject(this, "Set machine folder");
PrefabUtility.RecordPrefabInstancePropertyModifications(this);
#endif
if (value.Contains("StreamingAssets/"))
{
_machineFolder = "./StreamingAssets/" + value.Split("StreamingAssets/")[1];
}
Expand Down

0 comments on commit bcfa405

Please sign in to comment.