Hey, so i have been trying to instantiate an object at random local position but it doesnt seem to work. I’ve tried setting the instantiated object to be a child of that object, wich has the local position that i need, Any ideas?
-Thanks!
Simple code:
Transform DamageTextPrefab = Instantiate(DamageText10, new Vector3(Random.Range(-0.0897828f, 0.07099215f), 0.108575f, -0.2966309f), transform.rotation) as Transform;
DamageTextPrefab.transform.parent = transform;