Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Fix for Unity 2018.1 (#54)
Browse files Browse the repository at this point in the history
* Merged in changes from MicroGSD/master

* - Added support for Unity 2018.1+
- Modified unit tests to display execution time and improved test performance (removed multiple GameObject.Find calls)
- Added Clean up tests to RoadArchitect->Testing menu

* Remove meta files for missing/unused assets

* Add missing .meta files

* Fix for wrong Unity version symbol in GSDRoadUtil.cs causing exception in Unity 2018.1.x
Remove meta file for directory that doesn't exist on import
  • Loading branch information
tonygod authored and djohns451 committed Jul 12, 2018
1 parent 4170b1a commit 0765a5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Editor/Library/W.meta

This file was deleted.

2 changes: 1 addition & 1 deletion GSDRootUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static string GetPrefabString(GameObject tObj){
if(tObj != null){
tString = UnityEditor.AssetDatabase.GetAssetPath( tObj );
if(tString == null || tString.Length < 1){
#if UNITY_2018_1_OR_NEWER
#if UNITY_2018_2_OR_NEWER
Object parentObject = UnityEditor.PrefabUtility.GetCorrespondingObjectFromSource(tObj);
#else
Object parentObject = UnityEditor.PrefabUtility.GetPrefabParent(tObj);
Expand Down

0 comments on commit 0765a5b

Please sign in to comment.