@@ -24,7 +24,7 @@ namespace VisualPinball.Engine.Unity.Hdrp
2424{
2525 public class PrefabProvider : IPrefabProvider
2626 {
27- const string AssetLibraryPath = "Packages/org.visualpinball.unity.assetlibrary /Assets/Library" ;
27+ const string AssetLibraryPath = "Packages/org.visualpinball.unity.assets /Assets/Library" ;
2828
2929 public GameObject CreateBumper ( )
3030 {
@@ -36,13 +36,13 @@ public GameObject CreateGate(int type)
3636 var gatesPath = $ "{ AssetLibraryPath } /Gates/VPX";
3737 switch ( type ) {
3838 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") ;
4040 case GateType . GatePlate :
41- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate - Plate (VPX).prefab") ;
41+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ gatesPath } /Gate, Plate (VPX).prefab") ;
4242 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") ;
4444 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") ;
4646 default :
4747 throw new ArgumentException ( nameof ( type ) , $ "Unknown gate type { type } .") ;
4848 }
@@ -53,19 +53,19 @@ public GameObject CreateKicker(int type)
5353 var kickerPath = $ "{ AssetLibraryPath } /Kickers/VPX";
5454 switch ( type ) {
5555 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") ;
5757 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") ;
5959 case KickerType . KickerGottlieb :
60- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Gottlieb (VPX).prefab") ;
60+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Gottlieb (VPX).prefab") ;
6161 case KickerType . KickerHole :
62- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Hole (VPX).prefab") ;
62+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Hole (VPX).prefab") ;
6363 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") ;
6565 case KickerType . KickerWilliams :
66- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Williams (VPX).prefab") ;
66+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Williams (VPX).prefab") ;
6767 case KickerType . KickerInvisible :
68- return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker - Invisible.prefab") ;
68+ return AssetDatabase . LoadAssetAtPath < GameObject > ( $ "{ kickerPath } /Kicker, Invisible.prefab") ;
6969 default :
7070 throw new ArgumentException ( nameof ( type ) , $ "Unknown kicker type { type } .") ;
7171 }
@@ -92,22 +92,22 @@ public GameObject CreateHitTarget(int type)
9292 switch ( type ) {
9393 case TargetType . HitFatTargetRectangle :
9494 // -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") ;
9696 case TargetType . HitFatTargetSlim :
9797 // -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") ;
9999 case TargetType . HitFatTargetSquare :
100100 // -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") ;
102102 case TargetType . HitTargetRectangle :
103103 // -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") ;
105105 case TargetType . HitTargetRound :
106106 // -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") ;
108108 case TargetType . HitTargetSlim :
109109 // -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") ;
111111 default :
112112 throw new ArgumentException ( nameof ( type ) , $ "Unknown hit target type { type } .") ;
113113 }
@@ -119,13 +119,13 @@ public GameObject CreateDropTarget(int type)
119119 switch ( type ) {
120120 case TargetType . DropTargetBeveled :
121121 // -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") ;
123123 case TargetType . DropTargetFlatSimple :
124124 // -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") ;
126126 case TargetType . DropTargetSimple :
127127 // -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") ;
129129 default :
130130 throw new ArgumentException ( nameof ( type ) , $ "Unknown drop target type { type } .") ;
131131 }
0 commit comments