@@ -24,7 +24,7 @@ namespace VisualPinball.Engine.Unity.Hdrp
24
24
{
25
25
public class PrefabProvider : IPrefabProvider
26
26
{
27
- const string AssetLibraryPath = "Packages/org.visualpinball.unity.assetlibrary /Assets/Library" ;
27
+ const string AssetLibraryPath = "Packages/org.visualpinball.unity.assets /Assets/Library" ;
28
28
29
29
public GameObject CreateBumper ( )
30
30
{
@@ -36,13 +36,13 @@ public GameObject CreateGate(int type)
36
36
var gatesPath = $ "{ AssetLibraryPath } /Gates/VPX";
37
37
switch ( type ) {
38
38
case GateType . GateLongPlate :
39
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate - Plate, Long (VPX).prefab") ;
39
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate, Plate, Long (VPX).prefab") ;
40
40
case GateType . GatePlate :
41
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate - Plate (VPX).prefab") ;
41
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate, Plate (VPX).prefab") ;
42
42
case GateType . GateWireRectangle :
43
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate - Wire, Rectangle (VPX).prefab") ;
43
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate, Wire, Rectangle (VPX).prefab") ;
44
44
case GateType . GateWireW :
45
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate - Wire, W (VPX).prefab") ;
45
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate, Wire, W (VPX).prefab") ;
46
46
default :
47
47
throw new ArgumentException ( nameof ( type ) , $ "Unknown gate type { type } .") ;
48
48
}
@@ -53,19 +53,19 @@ public GameObject CreateKicker(int type)
53
53
var kickerPath = $ "{ AssetLibraryPath } /Kickers/VPX";
54
54
switch ( type ) {
55
55
case KickerType . KickerCup :
56
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Cup 1 (VPX).prefab") ;
56
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Cup 1 (VPX).prefab") ;
57
57
case KickerType . KickerCup2 :
58
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Cup 2 (VPX).prefab") ;
58
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Cup 2 (VPX).prefab") ;
59
59
case KickerType . KickerGottlieb :
60
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Gottlieb (VPX).prefab") ;
60
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Gottlieb (VPX).prefab") ;
61
61
case KickerType . KickerHole :
62
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Hole (VPX).prefab") ;
62
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Hole (VPX).prefab") ;
63
63
case KickerType . KickerHoleSimple :
64
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Hole, Simple (VPX).prefab") ;
64
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Hole, Simple (VPX).prefab") ;
65
65
case KickerType . KickerWilliams :
66
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Williams (VPX).prefab") ;
66
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Williams (VPX).prefab") ;
67
67
case KickerType . KickerInvisible :
68
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Invisible.prefab") ;
68
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Invisible.prefab") ;
69
69
default :
70
70
throw new ArgumentException ( nameof ( type ) , $ "Unknown kicker type { type } .") ;
71
71
}
@@ -92,22 +92,22 @@ public GameObject CreateHitTarget(int type)
92
92
switch ( type ) {
93
93
case TargetType . HitFatTargetRectangle :
94
94
// -6.65565 mm
95
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target - Rectangle, Fat (VPX).prefab") ;
95
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target, Rectangle, Fat (VPX).prefab") ;
96
96
case TargetType . HitFatTargetSlim :
97
97
// -6.31809 mm
98
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target - Narrow, Fat (VPX).prefab") ;
98
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target, Narrow, Fat (VPX).prefab") ;
99
99
case TargetType . HitFatTargetSquare :
100
100
// -6.67557 mm
101
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target - Square, Fat (VPX).prefab") ;
101
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target, Square, Fat (VPX).prefab") ;
102
102
case TargetType . HitTargetRectangle :
103
103
// -4.96337 mm
104
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target - Rectangle (VPX).prefab") ;
104
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target, Rectangle (VPX).prefab") ;
105
105
case TargetType . HitTargetRound :
106
106
// -4.97161 mm
107
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target - Round (VPX).prefab") ;
107
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target, Round (VPX).prefab") ;
108
108
case TargetType . HitTargetSlim :
109
109
// -7.94514 mm
110
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target - Narrow (VPX).prefab") ;
110
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Hit Target, Narrow (VPX).prefab") ;
111
111
default :
112
112
throw new ArgumentException ( nameof ( type ) , $ "Unknown hit target type { type } .") ;
113
113
}
@@ -119,13 +119,13 @@ public GameObject CreateDropTarget(int type)
119
119
switch ( type ) {
120
120
case TargetType . DropTargetBeveled :
121
121
// -5.22032 mm
122
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Drop Target - Beveled (VPX).prefab") ;
122
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Drop Target, Beveled (VPX).prefab") ;
123
123
case TargetType . DropTargetFlatSimple :
124
124
// -8.58968 mm
125
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Drop Target - Simple, Flat (VPX).prefab") ;
125
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Drop Target, Simple, Flat (VPX).prefab") ;
126
126
case TargetType . DropTargetSimple :
127
127
// -5.12326 mm
128
- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Drop Target - Simple (VPX).prefab") ;
128
+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ targetsPath } /Drop Target, Simple (VPX).prefab") ;
129
129
default :
130
130
throw new ArgumentException ( nameof ( type ) , $ "Unknown drop target type { type } .") ;
131
131
}
0 commit comments