Quantcast
Channel: Latest Questions by Griffo
Viewing all articles
Browse latest Browse all 94

Divide volume depending on chosen amount.

0
0
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

Viewing all articles
Browse latest Browse all 94

Latest Images

Trending Articles





Latest Images