Skip to content

Commit

Permalink
Merge pull request #39 from lge-ros2/develop
Browse files Browse the repository at this point in the history
Bug fix for ObjectSpawning
  • Loading branch information
hyunseok-yang authored Oct 12, 2020
2 parents 4391436 + 55f4444 commit 4c62407
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/UI/ObjectSpawning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ private IEnumerator SpawnTargetObject(PropsType type, Vector3 position, Vector3
{
spawnedObject = Instantiate(targetObject);
spawnedObject.name = propsName;
spawnedObject.SetActive(true);
var meshFilter = spawnedObject.GetComponentInChildren<MeshFilter>();
mesh = meshFilter.sharedMesh;
}
Expand Down

0 comments on commit 4c62407

Please sign in to comment.