Hello Hello!
Today I get strange behavior when I try to Instantiate prefab and set it as child for another GameObject.
This my code:
GameObject bonusInstance = Instantiate(bonusesList[BonusesTypeNum], spawnInstanceCoords, Quaternion.identity);
bonusInstance.transform.SetParent(gameObject.transform, true);
Renderer instanceRend = bonusInstance.GetComponent<Renderer>();
bonusInstance.transform.position = new Vector3(bonusInstance.transform.position.x,
bonusInstance.transform.position.y + instanceRend.bounds.extents.y + 0.2f,
bonusInstance.transform.position.z);
This is prefab:
Prefab rotated along Y axis at 45 degrees, but it spawning as 0 degrees. Collider at his own place. But it runtime I see next behavior (some moments cut, it’s no lags):

I don’t understand what goes wrong

