@@ -12,117 +12,75 @@ namespace RoadArchitect.EdgeObjects
12
12
public class EdgeObjectMaker
13
13
{
14
14
#region "Vars"
15
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bNeedsUpdate" ) ]
16
15
public bool isRequiringUpdate = false ;
17
16
public string UID = "" ;
18
- [ UnityEngine . Serialization . FormerlySerializedAs ( "tNode" ) ]
19
17
public SplineN node = null ;
20
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bIsGSD" ) ]
21
18
public bool isDefault = false ;
22
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObject" ) ]
23
19
public GameObject edgeObject = null ;
24
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjectString" ) ]
25
20
public string edgeObjectString = "" ;
26
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bMaterialOverride" ) ]
27
21
public bool isMaterialOverriden = false ;
28
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeMaterial1" ) ]
29
22
public Material edgeMaterial1 = null ;
30
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeMaterial2" ) ]
31
23
public Material edgeMaterial2 = null ;
32
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeMaterial1String" ) ]
33
24
public string edgeMaterial1String = null ;
34
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeMaterial2String" ) ]
35
25
public string edgeMaterial2String = null ;
36
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bMatchTerrain" ) ]
37
26
public bool isMatchingTerrain = true ;
38
27
39
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bCombineMesh" ) ]
40
28
public bool isCombinedMesh = false ;
41
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bCombineMeshCollider" ) ]
42
29
public bool isCombinedMeshCollider = false ;
43
- [ UnityEngine . Serialization . FormerlySerializedAs ( "MasterObj" ) ]
44
30
public GameObject masterObject = null ;
45
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjectLocations" ) ]
46
31
public List < Vector3 > edgeObjectLocations ;
47
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjectRotations" ) ]
48
32
public List < Vector3 > edgeObjectRotations ;
49
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjects" ) ]
50
33
public List < GameObject > edgeObjects ;
51
- [ UnityEngine . Serialization . FormerlySerializedAs ( "SubType" ) ]
52
34
public SignPlacementSubTypeEnum subType = SignPlacementSubTypeEnum . Right ;
53
- [ UnityEngine . Serialization . FormerlySerializedAs ( "MeterSep" ) ]
54
35
public float meterSep = 5f ;
55
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bToggle" ) ]
56
36
public bool isToggled = false ;
57
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bIsBridge" ) ]
58
37
public bool isBridge = false ;
59
38
60
39
61
40
#region "Horizontal offsets"
62
- [ UnityEngine . Serialization . FormerlySerializedAs ( "HorizontalSep" ) ]
63
41
public float horizontalSep = 5f ;
64
- [ UnityEngine . Serialization . FormerlySerializedAs ( "HorizontalCurve" ) ]
65
42
public AnimationCurve horizontalCurve ;
66
43
#endregion
67
44
68
45
69
46
#region "Vertical offsets"
70
- [ UnityEngine . Serialization . FormerlySerializedAs ( "VerticalRaise" ) ]
71
47
public float verticalRaise = 0f ;
72
- [ UnityEngine . Serialization . FormerlySerializedAs ( "VerticalCurve" ) ]
73
48
public AnimationCurve verticalCurve ;
74
49
#endregion
75
50
76
51
77
52
// Custom Rotation
78
- [ UnityEngine . Serialization . FormerlySerializedAs ( "CustomRotation" ) ]
79
53
public Vector3 customRotation = default ( Vector3 ) ;
80
54
public bool isRotationAligning = true ;
81
55
public bool isXRotationLocked = true ;
82
56
public bool isYRotationLocked = false ;
83
57
public bool isZRotationLocked = false ;
84
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bOncomingRotation" ) ]
85
58
public bool isOncomingRotation = true ;
86
59
87
60
// EdgeObject is static
88
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bStatic" ) ]
89
61
public bool isStatic = true ;
90
62
91
63
// The CustomScale of the EdgeObject
92
- [ UnityEngine . Serialization . FormerlySerializedAs ( "CustomScale" ) ]
93
64
public Vector3 customScale = new Vector3 ( 1f , 1f , 1f ) ;
94
65
95
66
// Start and EndTime
96
- [ UnityEngine . Serialization . FormerlySerializedAs ( "StartTime" ) ]
97
67
public float startTime = 0f ;
98
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EndTime" ) ]
99
68
public float endTime = 1f ;
100
69
101
- [ UnityEngine . Serialization . FormerlySerializedAs ( "SingleOnlyBridgePercent" ) ]
102
70
public float singleOnlyBridgePercent = 0f ;
103
- [ UnityEngine . Serialization . FormerlySerializedAs ( "StartPos" ) ]
104
71
public Vector3 startPos = default ( Vector3 ) ;
105
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EndPos" ) ]
106
72
public Vector3 endPos = default ( Vector3 ) ;
107
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bSingle" ) ]
108
73
public bool isSingle = false ;
109
74
110
75
// Should it be only on a single position
111
- [ UnityEngine . Serialization . FormerlySerializedAs ( "SinglePosition" ) ]
112
76
public float singlePosition ;
113
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bStartMatchRoadDefinition" ) ]
114
77
public bool isStartMatchRoadDefinition = false ;
115
- [ UnityEngine . Serialization . FormerlySerializedAs ( "StartMatchRoadDef" ) ]
116
78
public float startMatchRoadDef = 0f ;
117
79
118
80
// EdgeObjectName
119
- [ UnityEngine . Serialization . FormerlySerializedAs ( "tName" ) ]
120
81
public string objectName = "EdgeObject" ;
121
- [ UnityEngine . Serialization . FormerlySerializedAs ( "ThumbString" ) ]
122
82
public string thumbString = "" ;
123
- [ UnityEngine . Serialization . FormerlySerializedAs ( "Desc" ) ]
124
83
public string desc = "" ;
125
- [ UnityEngine . Serialization . FormerlySerializedAs ( "DisplayName" ) ]
126
84
public string displayName = "" ;
127
85
#endregion
128
86
@@ -376,81 +334,49 @@ private void SaveMesh(Mesh _mesh, bool _isCollider)
376
334
public class EdgeObjectLibraryMaker
377
335
{
378
336
#region "Vars"
379
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjectString" ) ]
380
337
public string edgeObjectString = "" ;
381
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bCombineMesh" ) ]
382
338
public bool isCombinedMesh = false ;
383
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bCombineMeshCollider" ) ]
384
339
public bool isCombinedMeshCollider = false ;
385
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjectLocations" ) ]
386
340
public List < Vector3 > edgeObjectLocations ;
387
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeObjectRotations" ) ]
388
341
public List < Vector3 > edgeObjectRotations ;
389
- [ UnityEngine . Serialization . FormerlySerializedAs ( "SubType" ) ]
390
342
public SignPlacementSubTypeEnum subType = SignPlacementSubTypeEnum . Right ;
391
- [ UnityEngine . Serialization . FormerlySerializedAs ( "MeterSep" ) ]
392
343
public float meterSep = 5f ;
393
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bToggle" ) ]
394
344
public bool isToggled = false ;
395
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bIsBridge" ) ]
396
345
public bool isBridge = false ;
397
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bIsGSD" ) ]
398
346
public bool isDefault = false ;
399
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bOncomingRotation" ) ]
400
347
public bool isOncomingRotation = true ;
401
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bStatic" ) ]
402
348
public bool isStatic = true ;
403
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bMatchTerrain" ) ]
404
349
public bool isMatchingTerrain = true ;
405
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bSingle" ) ]
406
350
public bool isSingle = false ;
407
351
408
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bMaterialOverride" ) ]
409
352
public bool isMaterialOverriden = false ;
410
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeMaterial1String" ) ]
411
353
public string edgeMaterial1String = "" ;
412
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EdgeMaterial2String" ) ]
413
354
public string edgeMaterial2String = "" ;
414
355
415
356
//Horizontal offsets:
416
- [ UnityEngine . Serialization . FormerlySerializedAs ( "HorizontalSep" ) ]
417
357
public float horizontalSep = 5f ;
418
- [ UnityEngine . Serialization . FormerlySerializedAs ( "HorizontalCurve" ) ]
419
358
public AnimationCurve horizontalCurve ;
420
359
//Vertical offsets:
421
- [ UnityEngine . Serialization . FormerlySerializedAs ( "VerticalRaise" ) ]
422
360
public float verticalRaise = 0f ;
423
- [ UnityEngine . Serialization . FormerlySerializedAs ( "VerticalCurve" ) ]
424
361
public AnimationCurve verticalCurve ;
425
362
426
- [ UnityEngine . Serialization . FormerlySerializedAs ( "CustomRotation" ) ]
427
363
public Vector3 customRotation = default ( Vector3 ) ;
428
364
public bool isRotationAligning = true ;
429
365
public bool isXRotationLocked = true ;
430
366
public bool isYRotationLocked = false ;
431
367
public bool isZRotationLocked = false ;
432
368
433
- [ UnityEngine . Serialization . FormerlySerializedAs ( "StartTime" ) ]
434
369
public float startTime = 0f ;
435
- [ UnityEngine . Serialization . FormerlySerializedAs ( "EndTime" ) ]
436
370
public float endTime = 1f ;
437
- [ UnityEngine . Serialization . FormerlySerializedAs ( "SingleOnlyBridgePercent" ) ]
438
371
public float singleOnlyBridgePercent = 0f ;
439
- [ UnityEngine . Serialization . FormerlySerializedAs ( "SinglePosition" ) ]
440
372
public float singlePosition ;
441
373
442
- [ UnityEngine . Serialization . FormerlySerializedAs ( "bStartMatchRoadDefinition" ) ]
443
374
public bool isStartMatchingRoadDefinition = false ;
444
- [ UnityEngine . Serialization . FormerlySerializedAs ( "StartMatchRoadDef" ) ]
445
375
public float startMatchRoadDef = 0f ;
446
376
447
- [ UnityEngine . Serialization . FormerlySerializedAs ( "tName" ) ]
448
377
public string objectName = "EdgeObject" ;
449
- [ UnityEngine . Serialization . FormerlySerializedAs ( "ThumbString" ) ]
450
378
public string thumbString = "" ;
451
- [ UnityEngine . Serialization . FormerlySerializedAs ( "Desc" ) ]
452
379
public string desc = "" ;
453
- [ UnityEngine . Serialization . FormerlySerializedAs ( "DisplayName" ) ]
454
380
public string displayName = "" ;
455
381
#endregion
456
382
0 commit comments