Im adding a bunch of prefabs to a grid Layout Group but they arent organising and just sit on the default location.
This is the code I have, as you can see Ive tried a few different ideas that have been suggested.
Any ideas?
var bucket = Instantiate(BucketPrefab, bucketPosition, quaternion.identity);
bucket.transform.SetParent(BucketGrid.transform,false);
bucket.transform.localScale = new Vector3( 1.0f, 1.0f, 1.0f );
bucket.transform.localPosition = Vector3.zero;