Skip to content

Commit ae02439

Browse files
committed
fix: Playfield retrieval.
1 parent 7ae2a39 commit ae02439

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

VisualPinball.Engine.PinMAME.Unity/Editor/PinMameGamelogicEngineInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private void CreateDisplays(IEnumerable<DisplayAuthoring> sceneDisplays)
156156
displayGameObjects[displays.Id] = displays;
157157
}
158158
var ta = _gle.GetComponentInParent<TableAuthoring>();
159-
var pa = _gle.GetComponentInParent<PlayfieldAuthoring>();
159+
var pa = _gle.GetComponentInChildren<PlayfieldAuthoring>();
160160
var tableHeight = 0f;
161161
var tableWidth = 1f;
162162
if (ta) {

VisualPinball.Engine.PinMAME/VisualPinball.Engine.PinMAME.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
<ItemGroup>
1919
<PackageReference Include="PinMame" Version="0.1.0-preview.41" />
2020
<PackageReference Include="PinMame.Native" Version="3.4.0-preview.280" />
21-
<PackageReference Include="VisualPinball.Engine" Version="0.0.1-preview.56" />
21+
</ItemGroup>
22+
23+
<ItemGroup>
24+
<Reference Include="VisualPinball.Engine, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null">
25+
<HintPath>..\..\VisualPinball.Engine\VisualPinball.Engine\.bin\Release\netstandard2.0\VisualPinball.Engine.dll</HintPath>
26+
</Reference>
2227
</ItemGroup>
2328

2429
<Target Name="PluginsDeploy" AfterTargets="Build">

0 commit comments

Comments
 (0)