Hi,
I'm a bit stuck and could do with some help please, I've put together a script to find the bounds of a prefab that helps me place light probes but what I'd like to do is if I ask for 2, 3 or 4 light probe volumes I'd like to divide the bounds up like in the pictures below, any ideas on how to efficiently do this, thanks.
function findBounds ()
{
ClearBounds();
probePositions.Clear();
var allChildren = transform.root.gameObject.GetComponentsInChildren(Transform);
for ( var child : Transform in allChildren)
{
if(child.gameObject.GetComponent.() != null)
meshRenererArray.Add(child.gameObject.GetComponent.());
}
for (var i: int = 0; i
Trending Articles
More Pages to Explore .....