Skip to content

Commit

Permalink
Merge pull request #9 from alexander-mironov/patch-1
Browse files Browse the repository at this point in the history
Prevent UI scale change
  • Loading branch information
prime31 committed Jun 2, 2015
2 parents f9128b2 + 5b56cc8 commit 029d14b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/RecyclerKit/TrashMan.cs
Expand Up @@ -141,7 +141,7 @@ private static GameObject spawn( int gameObjectInstanceId, Vector3 position, Qua

#if UNITY_4_6 || UNITY_5_0
if (newTransform as RectTransform)
newTransform.SetParent(null, true);
newTransform.SetParent(null, false);
else
#endif
newTransform.parent = null;
Expand Down Expand Up @@ -233,7 +233,7 @@ public static GameObject spawn( GameObject go, Vector3 position = default( Vecto

#if UNITY_4_6 || UNITY_5_0
if (newGo.transform as RectTransform != null)
newGo.transform.SetParent(null, true);
newGo.transform.SetParent(null, false);
else
#endif
newGo.transform.parent = null;
Expand Down Expand Up @@ -281,7 +281,7 @@ public static void despawn( GameObject go )

#if UNITY_4_6 || UNITY_5_0
if (go.transform as RectTransform != null)
go.transform.SetParent(instance.transform, true);
go.transform.SetParent(instance.transform, false);
else
#endif
go.transform.parent = instance.transform;
Expand Down

0 comments on commit 029d14b

Please sign in to comment.