Skip to content

Commit

Permalink
Merge pull request #537 from Unity-Technologies/workspace-fix
Browse files Browse the repository at this point in the history
Tiny workspace bug
  • Loading branch information
mtschoen-unity authored Feb 23, 2019
2 parents c950227 + 3f4eec6 commit 0bca175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Utilities/ObjectUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static Component CreateGameObjectWithComponent(Type type, Transform paren
if (Application.isPlaying)
{
var go = new GameObject(type.Name);
go.transform.parent = parent;
go.transform.SetParent(parent, false);
component = AddComponent(type, go);
}
#if UNITY_EDITOR
Expand Down

0 comments on commit 0bca175

Please sign in to comment.